Commit 0e11113b authored by Till Brehm's avatar Till Brehm

Added missing variable in postfix service detection code.

parent b4a7d4ca
...@@ -822,7 +822,7 @@ class installer_base { ...@@ -822,7 +822,7 @@ class installer_base {
} }
$postfix_service = @($out[0]=='')?false:true; $postfix_service = @($out[0]=='')?false:true;
} else { //* fallback - Postfix < 2.9 } else { //* fallback - Postfix < 2.9
rf($conf['postfix']['config_dir'].'/master.cf'); $content = rf($conf['postfix']['config_dir'].'/master.cf');
$regex = '/[^#]'.$service.'.*.'.$type.'.*/'; $regex = '/[^#]'.$service.'.*.'.$type.'.*/';
$postfix_service = @(!preg_match($regex, $content))?true:false; $postfix_service = @(!preg_match($regex, $content))?true:false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment