mirror of
https://github.com/vdm-io/dynamic-ip.git
synced 2024-12-12 11:07:45 +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"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user