X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/b5466f98ef7ecb67aad374b064481230ed050eee..9f27d58f1ce0833bb5460d7ca612c74f378548a1:/scripts/domtool-publish diff --git a/scripts/domtool-publish b/scripts/domtool-publish index 60f3f27..fdc9da8 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/ @@ -20,6 +27,16 @@ case $1 in /bin/cp /var/domtool/mailman.map /etc/mailman /etc/init.d/mailman reload ;; + courier) + /bin/cat /etc/courier/userdb/* >/etc/courier/exim + /bin/chmod o-r /etc/courier/exim + /usr/sbin/exim_dbmbuild /etc/courier/exim /etc/courier/exim.dat + /bin/chgrp mail /etc/courier/exim.dat + /bin/chmod o-r /etc/courier/exim.dat + ;; + smtplog) + /bin/grep $2 /var/log/exim4/mainlog + ;; *) echo "Usage: domtool-publish [apache|bind|exim|mailman]" ;;