]> code.delx.au - monosys/commitdiff
healthcheck don't use hostname command
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 3 Apr 2022 14:08:21 +0000 (00:08 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 3 Apr 2022 14:08:21 +0000 (00:08 +1000)
healthcheck/run-all

index 12eac5e5f9048422231561f6b89cd03928299667..e5a12c3a1cfeffe39fe672a51920a8183b298579 100755 (executable)
@@ -9,7 +9,7 @@ cd "$(dirname "$(readlink -f "$0")")"
 for i in ./*; do
     if [ "$(basename "$i")" != "$(basename "$0")" ]; then
         if ! "$i"; then
-            echo -e "\n^^ FAILED! $(hostname) $PRETTY_NAME -- $i ^^\n"
+            echo -e "\n^^ FAILED! $(cat /etc/hostname) $PRETTY_NAME -- $i ^^\n"
             exit 1
         fi
     fi