From 1b5f6e531fe22e3e0d4477b9f0ef1ffa814ae7de Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 25 Nov 2014 10:16:41 -0200 Subject: Make postfix use wrapper binaries on PBIDIR/bin or PBIDIR/sbin instead of try to use regular binaries from PBIDIR/local/(s)bin. etc is also linked from PBIDIR to PBIDIR/local then it won't break anything. It helps ticket #4018 --- config/postfix/postfix_queue.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'config/postfix/postfix_queue.php') diff --git a/config/postfix/postfix_queue.php b/config/postfix/postfix_queue.php index 6f8a7e19..1db2b8e2 100755 --- a/config/postfix/postfix_queue.php +++ b/config/postfix/postfix_queue.php @@ -34,12 +34,8 @@ $uname=posix_uname(); if ($uname['machine']=='amd64') ini_set('memory_limit', '250M'); -$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); if (is_dir('/usr/pbi/postfix-' . php_uname("m"))) { - if ($pfs_version == 2.2) - define('POSTFIX_LOCALBASE', '/usr/pbi/postfix-' . php_uname("m")."/local"); - else - define('POSTFIX_LOCALBASE', '/usr/pbi/postfix-' . php_uname("m")); + define('POSTFIX_LOCALBASE', '/usr/pbi/postfix-' . php_uname("m")); } else { define('POSTFIX_LOCALBASE','/usr/local'); } -- cgit v1.2.3