From f419a613d7859ac13d273836cbb83502df3fdf36 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 24 Apr 2015 15:30:23 -0300 Subject: Sanitize postfix version, add internal_name, port_category and run_depends. Also fix PBI checks --- config/postfix/postfix.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/postfix/postfix.inc') diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc index eb5499aa..e2b5c7df 100755 --- a/config/postfix/postfix.inc +++ b/config/postfix/postfix.inc @@ -36,7 +36,7 @@ require_once("pkg-utils.inc"); require_once("globals.inc"); $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); -if (is_dir('/usr/pbi/postfix-' . php_uname("m"))) { +if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('POSTFIX_LOCALBASE', '/usr/pbi/postfix-' . php_uname("m")); } else { define('POSTFIX_LOCALBASE','/usr/local'); -- cgit v1.2.3