trying to fix #460 by launching update domaines set dns_action='update'; at alternc.install ends

This commit is contained in:
Benjamin Sonntag 2011-03-27 11:23:28 +00:00
parent 0c6cf5a3f4
commit 0edb3c4e37
1 changed files with 5 additions and 0 deletions

View File

@ -338,6 +338,11 @@ if [ "$HAS_ROOT" != "1" ]; then
fi
fi
# We force the re-computing of the DNS zones, since we may have changed the IP address (see #460)
MYSQL_CONFIG="/etc/alternc/my.cnf"
mysql="/usr/bin/mysql --defaults-file=$MYSQL_CONFIG"
$mysql -B -e "update domaines set dns_action='update';"
# We should restart apaches after all configuration stuff ...
for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service stop || true