Commit b51c22ae authored by Till Brehm's avatar Till Brehm

Fixed: FS#3624 - SSL cert for postfix not created on OpenSuSE Linux during install

parent 1ed92e18
......@@ -114,7 +114,7 @@ class installer_dist extends installer_base {
function configure_postfix($options = '')
{
global $conf;
global $conf,$autoinstall;
$cf = $conf['postfix'];
$config_dir = $cf['config_dir'];
......
......@@ -49,7 +49,7 @@ class installer extends installer_base
public function configure_postfix($options = '')
{
global $conf;
global $conf,$autoinstall;
$cf = $conf['postfix'];
$config_dir = $cf['config_dir'];
......@@ -126,6 +126,7 @@ class installer extends installer_base
$command = 'cd '.$config_dir.'; '
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
}
exec($command);
$command = 'chmod o= '.$config_dir.'/smtpd.key';
caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command);
......
......@@ -130,7 +130,7 @@ class installer_dist extends installer_base {
function configure_postfix($options = '')
{
global $conf;
global $conf,$autoinstall;
$cf = $conf['postfix'];
$config_dir = $cf['config_dir'];
......@@ -264,6 +264,7 @@ class installer_dist extends installer_base {
$command = 'cd '.$config_dir.'; '
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
}
exec($command);
$command = 'chmod o= '.$config_dir.'/smtpd.key';
caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command);
......
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