diff --git a/files/keepalive.exit.sh.j2 b/files/keepalive.exit.sh.j2 index 55514ec..bf54618 100644 --- a/files/keepalive.exit.sh.j2 +++ b/files/keepalive.exit.sh.j2 @@ -93,7 +93,7 @@ while [ true ] ; do #Check other Supernode if [ $mode != "0" ]; then if [ $mode = "1" ]; then - nc -zvu $other_SN_DNS 53842 + /bin/nc -zvu $other_SN_DNS 53842 if [ $? -eq 0 ]; then if [ $online = 2 ]; then echo "Supernode wieder online. Backup Modus abgeschaltet" | $slack @@ -105,7 +105,7 @@ while [ true ] ; do fi fi # Check this Supernode - ping -q -c5 $my_SN_IP -I eth0 > /dev/null + /bin/ping -q -c5 $my_SN_IP -I eth0 > /dev/null if [ $? -eq 0 ]; then if [ $online = 0 ]; then echo "Ich bin jetzt Supernode!" | $slack @@ -136,7 +136,7 @@ while [ true ] ; do fi done # Check DNS Server - host google.de $meship + /usr/bin/host google.de $meship if [ "$?" != "0" ]; then service bind9 restart if [ $mode != "0" ]; then