always reload on localhost, we assume the master runs apache and bind

This commit is contained in:
Antoine Beaupré 2009-08-06 18:04:20 +00:00
parent 13b888cb61
commit 7774f90153
1 changed files with 3 additions and 4 deletions

View File

@ -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