diff options
Diffstat (limited to 'config/postfix/postfix_view_config.php')
-rw-r--r-- | config/postfix/postfix_view_config.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/postfix/postfix_view_config.php b/config/postfix/postfix_view_config.php index a844ce65..f23937d4 100644 --- a/config/postfix/postfix_view_config.php +++ b/config/postfix/postfix_view_config.php @@ -29,7 +29,9 @@ */ $shortcut_section = "postfix"; require("guiconfig.inc"); -if (is_dir('/usr/pbi/postfix-' . php_uname("m"))) { + +$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); +if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('POSTFIX_LOCALBASE', '/usr/pbi/postfix-' . php_uname("m")); } else { define('POSTFIX_LOCALBASE','/usr/local'); |