aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-12 23:59:16 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-12 23:59:16 +0100
commit37652b1872a67a3262d3f929630a7cd52d4b1241 (patch)
tree27746b5ad9f6b4f253f1053adb63055a4fbe53e7
parent83437b0ba2521ce4b4dcab93f48ca64b89f9d9f2 (diff)
downloadpfsense-packages-37652b1872a67a3262d3f929630a7cd52d4b1241.tar.gz
pfsense-packages-37652b1872a67a3262d3f929630a7cd52d4b1241.tar.bz2
pfsense-packages-37652b1872a67a3262d3f929630a7cd52d4b1241.zip
Add some PBI crap hacks
-rw-r--r--config/apache_mod_security/apache_mod_security.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index f417f848..63960b9e 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -49,7 +49,10 @@ function apache_mod_security_install() {
generate_apache_configuration();
$filename = "apache_mod_security.sh";
- $start = APACHEDIR . "/sbin/httpd -k start";
+ if (APACHEDIR != "/usr/local") {
+ $start = "/sbin/ldconfig -m " . APACHEDIR . "/lib\n";
+ }
+ $start .= APACHEDIR . "/sbin/httpd -k start";
$stop = APACHEDIR . "/sbin/httpd -k stop";
write_rcfile(array(
@@ -73,6 +76,9 @@ function apache_mod_security_deinstall() {
// Check Apache configuration syntax
function apache_mod_security_checkconfig() {
global $config, $g;
+ if (APACHEDIR != "/usr/local") {
+ mwexec("/sbin/ldconfig -m " . APACHEDIR . "/lib");
+ }
$status = mwexec(APACHEDIR . "/sbin/httpd -t");
if ($status) {
$input_errors[] = "[apache_mod_security]: There was an error parsing the Apache configuration: {$status}";