bourne shell vs bashism fix
[hcoop/domtool2.git] / scripts / domtool-publish
index b9f6ffc..da032fe 100755 (executable)
@@ -79,6 +79,11 @@ case $1 in
                /etc/init.d/apache2 reload
         ;;
         firewall)
+              # Ideally this would check if the config worked first
+              # (ferm failing just uses the previous config at
+              # least). Does it need to chown/chmod the generated
+              # rules?
+              /bin/cp /var/domtool/firewall/*.conf /etc/ferm/
               /etc/init.d/ferm reload
        ;;
        *)