aboutsummaryrefslogtreecommitdiffstats
path: root/config/postfix
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-05 11:24:07 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-05 11:24:07 +0100
commit61c8220119b60d42cbfdc5ee559d719f5d29b885 (patch)
treea896f83da1196ea6b5c11071b1728cd2dc432969 /config/postfix
parentaa482f8f106937b71683dabb8fc964daba88e6de (diff)
downloadpfsense-packages-61c8220119b60d42cbfdc5ee559d719f5d29b885.tar.gz
pfsense-packages-61c8220119b60d42cbfdc5ee559d719f5d29b885.tar.bz2
pfsense-packages-61c8220119b60d42cbfdc5ee559d719f5d29b885.zip
Attempt to fix PBI library paths (Bug #4420)
Diffstat (limited to 'config/postfix')
-rwxr-xr-xconfig/postfix/postfix.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index f7cec3f3..9db7e5a1 100755
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -688,8 +688,15 @@ MASTEREOF2;
//check postfix etc dir on 2.2
$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
$postfix_etc_lnk="/usr/local/etc/postfix";
- if ($pfs_version == 2.2 && !is_dir($postfix_etc_lnk))
+ if ($pfs_version == 2.2 && !is_dir($postfix_etc_lnk)) {
@symlink(POSTFIX_LOCALBASE.'/etc/postfix',$postfix_etc_lnk);
+ }
+
+ // Fixup library path so postfix can find its libraries
+ // XXX: Bug #4420
+ if (POSTFIX_LOCALBASE != '/usr/local') {
+ mwexec("/sbin/ldconfig -m " . POSTFIX_LOCALBASE . "/local/lib/");
+ }
log_error("Writing out configuration");
file_put_contents(POSTFIX_LOCALBASE."/etc/postfix/main.cf", $postfix_main, LOCK_EX);