monitoring: nodes reboots itself if other nodes can not reach it
diff --git a/scripts/homelab/restart-if-no-ssh-login.sh b/scripts/homelab/restart-if-no-ssh-login.sh
index 39ddf6e..5527440 100755
--- a/scripts/homelab/restart-if-no-ssh-login.sh
+++ b/scripts/homelab/restart-if-no-ssh-login.sh
@@ -1,8 +1,8 @@
-if [ ! -f /home/pcloud/SSH_LOGGED_IN ];
+#!/bin/bash
+
+if [[ ! -f /home/pcloud/SSH_LOGGED_IN ]];
then
- echo "SSH_LOGGED_IN not found, restaring"
sudo shutdown -r
else
- echo "SSH_LOGGED_IN found and removing"
rm /home/pcloud/SSH_LOGGED_IN
fi