Skip to content

Commit b51c22a

Browse files
author
Till Brehm
committed
Fixed: FS#3624 - SSL cert for postfix not created on OpenSuSE Linux during install
1 parent 1ed92e1 commit b51c22a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function configure_mailman($status = 'insert') {
114114

115115
function configure_postfix($options = '')
116116
{
117-
global $conf;
117+
global $conf,$autoinstall;
118118
$cf = $conf['postfix'];
119119
$config_dir = $cf['config_dir'];
120120

install/dist/lib/gentoo.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function configure_jailkit()
4949

5050
public function configure_postfix($options = '')
5151
{
52-
global $conf;
52+
global $conf,$autoinstall;
5353

5454
$cf = $conf['postfix'];
5555
$config_dir = $cf['config_dir'];
@@ -126,6 +126,7 @@ public function configure_postfix($options = '')
126126
$command = 'cd '.$config_dir.'; '
127127
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
128128
}
129+
exec($command);
129130

130131
$command = 'chmod o= '.$config_dir.'/smtpd.key';
131132
caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command);

install/dist/lib/opensuse.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function configure_mailman($status = 'insert') {
130130

131131
function configure_postfix($options = '')
132132
{
133-
global $conf;
133+
global $conf,$autoinstall;
134134
$cf = $conf['postfix'];
135135
$config_dir = $cf['config_dir'];
136136

@@ -264,6 +264,7 @@ function configure_postfix($options = '')
264264
$command = 'cd '.$config_dir.'; '
265265
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
266266
}
267+
exec($command);
267268

268269
$command = 'chmod o= '.$config_dir.'/smtpd.key';
269270
caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command);

0 commit comments

Comments
 (0)