From 1471687da221a32ddba7a3529ccda1208a9b05ab Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Tue, 26 Feb 2013 09:40:55 +0000 Subject: [PATCH] =?UTF-8?q?Un=20fichier=20temporaire=20pouvait=20rester=20?= =?UTF-8?q?dans=20/tmp=20apr=C3=A8s=20l'travail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/slave_dns | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ' ')