]> code.delx.au - monosys/blobdiff - healthcheck/run-all
healthcheck
[monosys] / healthcheck / run-all
diff --git a/healthcheck/run-all b/healthcheck/run-all
new file mode 100755 (executable)
index 0000000..2d57d51
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -eu
+
+. /etc/os-release
+
+cd "$(dirname "$(readlink -f "$0")")"
+
+for i in ./*; do
+    if [ "$i" != "$(basename "$0")" ]; then
+        if ! "$i"; then
+            echo -e "\n^^ FAILED! $(hostname) $PRETTY_NAME -- $i ^^\n"
+            exit 1
+        fi
+    fi
+done