Per-host firewall rules
[hcoop/domtool2.git] / scripts / domtool-publish
index 63c5312..7518281 100755 (executable)
@@ -42,7 +42,7 @@ case $1 in
                /bin/cp /var/domtool/named.conf.local /etc/bind/
                /bin/chown root:bind_config /etc/bind/named.conf.local
                /bin/chmod u=rw,g=rw,o=r /etc/bind/named.conf.local
-               /etc/init.d/bind9 reload
+               /etc/init.d/bind9 restart
        ;;
        exim)
                /bin/cp /var/domtool/aliases /etc/aliases.hosted
@@ -74,7 +74,14 @@ case $1 in
         apache1.3-fixperms)
                 /bin/chown -R domtool.domtool /var/log/apache/user
         ;;
+        users)
+                /bin/cp /var/domtool/waklog.conf /etc/apache2/
+               /etc/init.d/apache2 reload
+        ;;
+        firewall)
+              /etc/init.d/ferm reload
+       ;;
        *)
-               echo "Usage: domtool-publish [apache|bind|courier|exim|mailman|smtplog STRING]"
+               echo "Usage: domtool-publish [apache|bind|courier|exim|mailman|smtplog STRING|users|firewall]"
        ;;
 esac