diff options
author | doktornotor <notordoktor@gmail.com> | 2015-11-05 10:57:59 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-11-05 10:57:59 +0100 |
commit | aa482f8f106937b71683dabb8fc964daba88e6de (patch) | |
tree | 9f6f90262c6ac11410cfde69f9066aeb25411045 /config | |
parent | 451cce8ff2baa95fbfe11065cfd3e0a5e2fe1a84 (diff) | |
download | pfsense-packages-aa482f8f106937b71683dabb8fc964daba88e6de.tar.gz pfsense-packages-aa482f8f106937b71683dabb8fc964daba88e6de.tar.bz2 pfsense-packages-aa482f8f106937b71683dabb8fc964daba88e6de.zip |
Attempt to fix PBI library paths (Bug #4420)
Diffstat (limited to 'config')
-rwxr-xr-x | config/postfix/postfix.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc index 4662feaa..f7cec3f3 100755 --- a/config/postfix/postfix.inc +++ b/config/postfix/postfix.inc @@ -736,6 +736,12 @@ MASTEREOF2; function postfix_start(){ global $config; $pf_dir=POSTFIX_LOCALBASE; + if (POSTFIX_LOCALBASE != '/usr/local') { + $pf_libdir = POSTFIX_LOCALBASE . "/local/lib"; + $pf_start_cmd = "LD_LIBRARY_PATH={$pf_libdir} {$pf_dir}/sbin/postfix start"; + } else { + $pf_start_cmd = "{$pf_dir}/sbin/postfix start"; + } $start=<<<EOF sysctl kern.ipc.nmbclusters=65536 @@ -743,7 +749,7 @@ function postfix_start(){ sysctl kern.maxfiles=131072 sysctl kern.maxfilesperproc=104856 sysctl kern.threads.max_threads_per_proc=4096 - {$pf_dir}/sbin/postfix start + {$pf_start_cmd} EOF; $stop = POSTFIX_LOCALBASE."/sbin/postfix stop\n"; |