diff options
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 4 | ||||
-rw-r--r-- | config/apache_mod_security/apache_mod_security.xml | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index dc51fc8a..3b3e8e33 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -11,7 +11,11 @@ function apache_mod_security_install() { } function apache_mod_security_deinstall() { + exec("rm -rf /usr/local/apachemodsecurity"); +} +function apache_mod_security_resync() { + generate_apache_configuration(); } function generate_apache_configuration() { diff --git a/config/apache_mod_security/apache_mod_security.xml b/config/apache_mod_security/apache_mod_security.xml index 98ccf764..589f0ef3 100644 --- a/config/apache_mod_security/apache_mod_security.xml +++ b/config/apache_mod_security/apache_mod_security.xml @@ -94,7 +94,10 @@ <name>apache_mod_security</name> <rcfile>/usr/local/etc/rc.d/apache_mod_security.sh</rcfile> <executable>httpd</executable> - </service> + </service> + <custom_php_resync_config_command> + apache_mod_security_resync(); + </custom_php_resync_config_command> <custom_add_php_command_late> </custom_add_php_command_late> <custom_php_install_command> |