Un fichier temporaire pouvait rester dans /tmp après l'travail
This commit is contained in:
parent
80c5b3fdb1
commit
1471687da2
|
@ -6,7 +6,6 @@
|
||||||
FLAGFILE="/var/run/alternc/refresh_slave";
|
FLAGFILE="/var/run/alternc/refresh_slave";
|
||||||
TPL="/etc/alternc/templates/bind/slaveip.conf"
|
TPL="/etc/alternc/templates/bind/slaveip.conf"
|
||||||
TARGET="/var/lib/alternc/bind/slaveip.conf"
|
TARGET="/var/lib/alternc/bind/slaveip.conf"
|
||||||
TMP=$(mktemp /tmp/slaveip.conf.XXXX)
|
|
||||||
|
|
||||||
if [ ! -e "$FLAGFILE" ] ; then
|
if [ ! -e "$FLAGFILE" ] ; then
|
||||||
# Nothing to do
|
# Nothing to do
|
||||||
|
@ -16,6 +15,8 @@ fi
|
||||||
# Source some functions
|
# Source some functions
|
||||||
. /usr/lib/alternc/functions.sh
|
. /usr/lib/alternc/functions.sh
|
||||||
|
|
||||||
|
TMP=$(mktemp /tmp/slaveip.conf.XXXX)
|
||||||
|
|
||||||
# Get the slave IP. Remove the "newline" caracters
|
# Get the slave IP. Remove the "newline" caracters
|
||||||
val=$(mysql_query "SELECT concat(ip,'::',class,'; ') FROM slaveip;"|tr '\n' ' ')
|
val=$(mysql_query "SELECT concat(ip,'::',class,'; ') FROM slaveip;"|tr '\n' ' ')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue