mirror of
https://github.com/namibia/demo-sync.git
synced 2024-11-24 12:17:34 +00:00
fixed the rndc check to insure it runs
This commit is contained in:
parent
f8e5e3161e
commit
68dbfeb3d0
7
getip.sh
7
getip.sh
@ -239,10 +239,13 @@ function setDNS () {
|
|||||||
echoTweak "1" 8 '\040' >> "$FILENAME"
|
echoTweak "1" 8 '\040' >> "$FILENAME"
|
||||||
echo "IN A ${row[2]}" >> "$FILENAME"
|
echo "IN A ${row[2]}" >> "$FILENAME"
|
||||||
# Only reload the rndc if found
|
# Only reload the rndc if found
|
||||||
command -v rndc >/dev/null 2>&1 || {
|
if [ -f "/etc/rndc.conf" ]
|
||||||
|
then
|
||||||
|
cd /var/named
|
||||||
rndc reload "$RELOADNAME" IN external
|
rndc reload "$RELOADNAME" IN external
|
||||||
rndc reload "$RELOADNAME" IN internal
|
rndc reload "$RELOADNAME" IN internal
|
||||||
}
|
cd ~
|
||||||
|
fi
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user