aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.geekgod.com>2009-06-19 17:51:54 -0400
committerScott Ullrich <sullrich@pfSense.geekgod.com>2009-06-19 17:51:54 -0400
commit107a9863c5f38382c58fa18ba0728a94ea53cbf2 (patch)
tree68b57f1c741dfcbfdba396a5f2c32515d2f7e708
parent5b7cd8faa5fd2742df1e3d17d3ac43793d2fd2bd (diff)
downloadpfsense-packages-107a9863c5f38382c58fa18ba0728a94ea53cbf2.tar.gz
pfsense-packages-107a9863c5f38382c58fa18ba0728a94ea53cbf2.tar.bz2
pfsense-packages-107a9863c5f38382c58fa18ba0728a94ea53cbf2.zip
Resync on changes. Should be able to verify that the apache.conf is being written now.
-rw-r--r--config/apache_mod_security/apache_mod_security.inc4
-rw-r--r--config/apache_mod_security/apache_mod_security.xml5
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>