fixed installer - ispconfig/ispconfig3#3750
| | |
| | | $config_dir = $conf['postfix']['config_dir']; |
| | | //* Configure master.cf and add a line for deliver |
| | | if ($this->postfix_master()) { |
| | | exec ("postconf -M dovecot.unix &> /dev/null", $out, $ret); |
| | | exec ("postconf -M dovecot.unix", $out, $ret); //* Postfix 2.9 |
| | | if (!isset($out[0])) exec ("postconf -M dovecot/unix", $out, $ret); //* Postfix >= 2.11 |
| | | $add_dovecot_service = @($out[0]=='')?true:false; |
| | | } else { //* fallback - postfix < 2.9 |
| | | $content = rf($config_dir.'/master.cf'); |
| | |
| | | $config_dir = $conf['postfix']['config_dir']; |
| | | //* Configure master.cf and add a line for deliver |
| | | if ($this->postfix_master()) { |
| | | exec ("postconf -M dovecot.unix &> /dev/null", $out, $ret); |
| | | exec ("postconf -M dovecot.unix", $out, $ret); //* Postfix 2.9 |
| | | if (!isset($out[0])) exec ("postconf -M dovecot/unix", $out, $ret); //* Postfix >= 2.11 |
| | | $add_dovecot_service = @($out[0]=='')?true:false; |
| | | } else { //* fallback - postfix < 2.9 |
| | | $content = rf($config_dir.'/master.cf'); |
| | |
| | | $config_dir = $conf['postfix']['config_dir']; |
| | | //* Configure master.cf and add a line for deliver |
| | | if ($this->postfix_master()) { |
| | | exec ("postconf -M dovecot.unix &> /dev/null", $out, $ret); |
| | | exec ("postconf -M dovecot.unix", $out, $ret); //* Postfix 2.9 |
| | | if (!isset($out[0])) exec ("postconf -M dovecot/unix", $out, $ret); //* Postfix >= 2.11 |
| | | $add_dovecot_service = @($out[0]=='')?true:false; |
| | | } else { //* fallback - postfix < 2.9 |
| | | $content = rf($config_dir.'/master.cf'); |
| | |
| | | $config_dir = $conf['postfix']['config_dir']; |
| | | //* Configure master.cf and add a line for deliver |
| | | if ($this->postfix_master()) { |
| | | exec ("postconf -M dovecot.unix &> /dev/null", $out, $ret); |
| | | exec ("postconf -M dovecot.unix", $out, $ret); //* Postfix 2.9 |
| | | if (!isset($out[0])) exec ("postconf -M dovecot/unix", $out, $ret); //* Postfix >= 2.11 |
| | | $add_dovecot_service = @($out[0]=='')?true:false; |
| | | } else { //* fallback - postfix < 2.9 |
| | | $content = rf($config_dir.'/master.cf'); |
| | |
| | | $config_dir = $conf['postfix']['config_dir']; |
| | | //* Configure master.cf and add a line for deliver |
| | | if ($this->postfix_master()) { |
| | | exec ("postconf -M dovecot.unix &> /dev/null", $out, $ret); |
| | | exec ("postconf -M dovecot.unix", $out, $ret); //* Postfix 2.9 |
| | | if (!isset($out[0])) exec ("postconf -M dovecot/unix", $out, $ret); //* Postfix >= 2.11 |
| | | $add_dovecot_service = @($out[0]=='')?true:false; |
| | | } else { //* fallback - postfix < 2.9 |
| | | $content = rf($config_dir.'/master.cf'); |