always reload on localhost, we assume the master runs apache and bind
This commit is contained in:
parent
13b888cb61
commit
7774f90153
|
@ -241,11 +241,10 @@ IFS="$OLD_IFS"
|
||||||
|
|
||||||
RELOAD_ZONES=`cat "$RELOAD_ZONES_TMP_FILE"`
|
RELOAD_ZONES=`cat "$RELOAD_ZONES_TMP_FILE"`
|
||||||
|
|
||||||
|
alternc_reload $RELOAD_ZONES
|
||||||
for slave in $ALTERNC_SLAVES; do
|
for slave in $ALTERNC_SLAVES; do
|
||||||
if [ "$slave" = "localhost" ]; then
|
if [ "$slave" != "localhost" ]; then
|
||||||
alternc_reload $RELOAD_ZONES
|
ssh alternc@$slave alternc_reload "$RELOAD_ZONES"
|
||||||
else
|
|
||||||
ssh alternc@$slave /usr/sbin/alternc_reload "$RELOAD_ZONES"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue