From aa482f8f106937b71683dabb8fc964daba88e6de Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 5 Nov 2015 10:57:59 +0100 Subject: Attempt to fix PBI library paths (Bug #4420) --- config/postfix/postfix.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config/postfix') 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=<<