Example config file for a single-machine development setup
[hcoop/domtool2.git] / scripts / domtool-publish
index 811c464..9a9a01a 100755 (executable)
@@ -40,8 +40,8 @@ case $1 in
                /usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/
                /bin/chown -R bind /etc/bind/zones
                /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
+               /bin/chown root:bind /etc/bind/named.conf.local
+               /bin/chmod 644 /etc/bind/named.conf.local
                /etc/init.d/bind9 restart
        ;;
        exim)
@@ -83,7 +83,7 @@ case $1 in
               # (ferm failing just uses the previous config at
               # least). Does it need to chown/chmod the generated
               # rules?
-              /bin/cp /var/domtool/firewall/{user_chains.conf,users_tcp_in.conf,users_tcp_out.conf} /etc/ferm/
+              /bin/cp /var/domtool/firewall/*.conf /etc/ferm/
               /etc/init.d/ferm reload
        ;;
        *)