aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-05-07 16:20:18 -0500
committerChris Buechler <cmb@pfsense.org>2015-05-07 16:20:51 -0500
commit0e7c2495f5f5eb69e450d89cb823de6c066af7d3 (patch)
tree22acd0b67413ba60478cbc143f4cd6d71a558fd1 /config
parentf9b65f8e27cbc3ae7028d094c70cdc9f38e19523 (diff)
downloadpfsense-packages-0e7c2495f5f5eb69e450d89cb823de6c066af7d3.tar.gz
pfsense-packages-0e7c2495f5f5eb69e450d89cb823de6c066af7d3.tar.bz2
pfsense-packages-0e7c2495f5f5eb69e450d89cb823de6c066af7d3.zip
create /usr/local/etc/apache22 dir if it doesn't exist, fixes broken
package install mgsmith reported.
Diffstat (limited to 'config')
-rw-r--r--config/apache_mod_security/apache_mod_security.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index 8475ca50..8bcf3ddd 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -1005,7 +1005,9 @@ SSLRandomSeed connect builtin
Include etc/apache22/Includes/*.conf
EOF;
-
+ if (!is_dir('/usr/local/etc/apache22')) {
+ mkdir('/usr/local/etc/apache22', 0775, true);
+ }
$fd = fopen("/usr/local/etc/apache22/httpd.conf", "w");
if(!$fd) {
$error_text = "Could not open httpd.conf for writing!";