more explicit messages in rebuild_all_webconf

This commit is contained in:
Benjamin Sonntag 2014-03-27 18:15:55 +01:00
parent f5f7d264c4
commit 2fc7b3de97
1 changed files with 1 additions and 4 deletions

View File

@ -4,24 +4,21 @@
. /usr/lib/alternc/functions.sh . /usr/lib/alternc/functions.sh
echo "This script will rebuild all web configuration and regenerate DNS." echo "This script will rebuild all web configuration and regenerate DNS."
echo ""
echo "Only files in $VHOST_MANUALCONF will be preserved." echo "Only files in $VHOST_MANUALCONF will be preserved."
echo "Use --force to skip confirmation" echo "Use --force to skip confirmation"
echo ""
if [ ! "$1" == "--force" ] ; then if [ ! "$1" == "--force" ] ; then
read -n1 -p "Continue (y/n)? " read -n1 -p "Continue (y/n)? "
[[ $REPLY = [yY] ]] || exit 1 [[ $REPLY = [yY] ]] || exit 1
fi fi
echo ""
echo "++ Start rebuilding ++" echo "++ Start rebuilding ++"
echo "Set flag to rebuild" echo "Set flag to rebuild"
mysql_query "update sub_domaines set web_action = 'UPDATE' and web_action != 'DELETE';" mysql_query "update sub_domaines set web_action = 'UPDATE' and web_action != 'DELETE';"
mysql_query "update domaines set dns_action = 'UPDATE' and dns_action != 'DELETE';" mysql_query "update domaines set dns_action = 'UPDATE' and dns_action != 'DELETE';"
echo "Launch update_domains to rebuild." echo "Now launching update_domains to rebuild."
/usr/lib/alternc/update_domains.sh /usr/lib/alternc/update_domains.sh
/usr/lib/alternc/generate_bind_conf.php --force /usr/lib/alternc/generate_bind_conf.php --force