diff --git a/src/slave_dns b/src/slave_dns index b170dc4d..6932363e 100644 --- a/src/slave_dns +++ b/src/slave_dns @@ -6,7 +6,6 @@ FLAGFILE="/var/run/alternc/refresh_slave"; TPL="/etc/alternc/templates/bind/slaveip.conf" TARGET="/var/lib/alternc/bind/slaveip.conf" -TMP=$(mktemp /tmp/slaveip.conf.XXXX) if [ ! -e "$FLAGFILE" ] ; then # Nothing to do @@ -16,6 +15,8 @@ fi # Source some functions . /usr/lib/alternc/functions.sh +TMP=$(mktemp /tmp/slaveip.conf.XXXX) + # Get the slave IP. Remove the "newline" caracters val=$(mysql_query "SELECT concat(ip,'::',class,'; ') FROM slaveip;"|tr '\n' ' ')