Merge branch 'new-new-net' of github.com:Freifunk-Troisdorf/ansible.fftdf.supernode into new-new-net

This commit is contained in:
Ansible Admin 2016-07-11 19:45:39 +02:00
commit 791a46738c

View File

@ -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