HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User add/remove scripts
[hcoop/domtool2.git]
/
scripts
/
domtool-publish
diff --git
a/scripts/domtool-publish
b/scripts/domtool-publish
index
3279588
..
fad7e85
100755
(executable)
--- a/
scripts/domtool-publish
+++ b/
scripts/domtool-publish
@@
-2,11
+2,18
@@
case $1 in
apache)
case $1 in
apache)
- /usr/bin/rsync --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
+ /usr/bin/rsync -
r -
-delete /var/domtool/vhosts/ /etc/apache2/vhosts/
/etc/init.d/apache2 reload
;;
/etc/init.d/apache2 reload
;;
+ apache-down)
+ /etc/init.d/apache2 stop
+ ;;
+ apache-undown)
+ /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
+ /etc/init.d/apache2 start
+ ;;
bind)
bind)
- /usr/bin/rsync --delete /var/domtool/zones/ /etc/bind/zones/
+ /usr/bin/rsync -
r -
-delete /var/domtool/zones/ /etc/bind/zones/
/bin/cp /var/domtool/named.conf.local /etc/bind/
/etc/init.d/bind9 reload
;;
/bin/cp /var/domtool/named.conf.local /etc/bind/
/etc/init.d/bind9 reload
;;