From e255e42ffafd6ff4b862889e535cf0097b5f19ac Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 23 Jun 2009 21:46:13 -0400 Subject: Generate configuration after install since the person may be restoring the config on a different box and it should just work out of the box without having to click edit. --- config/apache_mod_security/apache_mod_security.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/apache_mod_security') diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index c76ee39c..55ec4616 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -48,6 +48,10 @@ function apache_mod_security_restart() { function apache_mod_security_install() { global $config, $g; + // We might be reinstalling and a configuration + // already exists. + generate_apache_configuration(); + $filename = "apache_mod_security.sh"; $start = "php -q -d auto_prepend_file=config.inc <