Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
2fc7b3de
Commit
2fc7b3de
authored
Mar 27, 2014
by
Benjamin Sonntag
Browse files
more explicit messages in rebuild_all_webconf
parent
f5f7d264
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rebuild_all_webconf.sh
View file @
2fc7b3de
...
...
@@ -4,24 +4,21 @@
.
/usr/lib/alternc/functions.sh
echo
"This script will rebuild all web configuration and regenerate DNS."
echo
""
echo
"Only files in
$VHOST_MANUALCONF
will be preserved."
echo
"Use --force to skip confirmation"
echo
""
if
[
!
"
$1
"
==
"--force"
]
;
then
read
-n1
-p
"Continue (y/n)? "
[[
$REPLY
=
[
yY]
]]
||
exit
1
fi
echo
""
echo
"++ Start rebuilding ++"
echo
"Set flag to rebuild"
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';"
echo
"
L
aunch update_domains to rebuild."
echo
"
Now l
aunch
ing
update_domains to rebuild."
/usr/lib/alternc/update_domains.sh
/usr/lib/alternc/generate_bind_conf.php
--force
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment