From 41f7457a0e65e44ef5f63ee3cc332b36573981f8 Mon Sep 17 00:00:00 2001 From: stebifan Date: Mon, 11 Jul 2016 19:35:03 +0200 Subject: [PATCH] Update keepalive.exit.sh.j2 --- files/keepalive.exit.sh.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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