1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-21 11:05:10 +00:00

fixed the rndc check to insure it runs

This commit is contained in:
Llewellyn van der Merwe 2017-07-25 10:02:14 +01:00
parent f8e5e3161e
commit 68dbfeb3d0
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5

View File

@ -239,10 +239,13 @@ function setDNS () {
echoTweak "1" 8 '\040' >> "$FILENAME"
echo "IN A ${row[2]}" >> "$FILENAME"
# 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 internal
}
cd ~
fi
echo "Done"
fi
fi