Till Brehm
2014-08-14 b51c22aecea55a2edb0e5fa712b297465a444b28
Fixed: FS#3624 - SSL cert for postfix not created on OpenSuSE Linux during install
3 files modified
8 ■■■■■ changed files
install/dist/lib/fedora.lib.php 2 ●●● patch | view | raw | blame | history
install/dist/lib/gentoo.lib.php 3 ●●●● patch | view | raw | blame | history
install/dist/lib/opensuse.lib.php 3 ●●●● patch | view | raw | blame | history
install/dist/lib/fedora.lib.php
@@ -114,7 +114,7 @@
    function configure_postfix($options = '')
    {
        global $conf;
        global $conf,$autoinstall;
        $cf = $conf['postfix'];
        $config_dir = $cf['config_dir'];
install/dist/lib/gentoo.lib.php
@@ -49,7 +49,7 @@
    public function configure_postfix($options = '')
    {
        global $conf;
        global $conf,$autoinstall;
        $cf = $conf['postfix'];
        $config_dir = $cf['config_dir'];
@@ -126,6 +126,7 @@
                $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);
install/dist/lib/opensuse.lib.php
@@ -130,7 +130,7 @@
    function configure_postfix($options = '')
    {
        global $conf;
        global $conf,$autoinstall;
        $cf = $conf['postfix'];
        $config_dir = $cf['config_dir'];
@@ -264,6 +264,7 @@
                $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);