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"`
|
||||
|
||||
for slave in $ALTERNC_SLAVES; do
|
||||
if [ "$slave" = "localhost" ]; then
|
||||
alternc_reload $RELOAD_ZONES
|
||||
else
|
||||
ssh alternc@$slave /usr/sbin/alternc_reload "$RELOAD_ZONES"
|
||||
for slave in $ALTERNC_SLAVES; do
|
||||
if [ "$slave" != "localhost" ]; then
|
||||
ssh alternc@$slave alternc_reload "$RELOAD_ZONES"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue