X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/c189cbe97d554b26ec6b203b4ce9f697947ecc38..8e965b2da49aab1faef95b25471513498ceca895:/scripts/domtool-publish diff --git a/scripts/domtool-publish b/scripts/domtool-publish index 60f3f27..fad7e85 100755 --- a/scripts/domtool-publish +++ b/scripts/domtool-publish @@ -5,6 +5,13 @@ case $1 in /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/ /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) /usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/ /bin/cp /var/domtool/named.conf.local /etc/bind/