From 107a9863c5f38382c58fa18ba0728a94ea53cbf2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 19 Jun 2009 17:51:54 -0400 Subject: Resync on changes. Should be able to verify that the apache.conf is being written now. --- config/apache_mod_security/apache_mod_security.inc | 4 ++++ config/apache_mod_security/apache_mod_security.xml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 @@ apache_mod_security /usr/local/etc/rc.d/apache_mod_security.sh httpd - + + + apache_mod_security_resync(); + -- cgit v1.2.3