From 10b4c85a7686da07bddb5779f8ceea48acdf412e Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 03 Jan 2013 06:51:45 -0500 Subject: [PATCH] Merged revisons 3687-3748 from 3.0.5 stable branch. --- install/dist/lib/fedora.lib.php | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/install/dist/lib/fedora.lib.php b/install/dist/lib/fedora.lib.php index 964d17b..a4bc4d5 100644 --- a/install/dist/lib/fedora.lib.php +++ b/install/dist/lib/fedora.lib.php @@ -941,6 +941,11 @@ } else { $content = str_replace('{ssl_comment}', '#', $content); } + if(is_file($install_dir.'/interface/ssl/ispserver.crt') && is_file($install_dir.'/interface/ssl/ispserver.key') && is_file($install_dir.'/interface/ssl/ispserver.bundle')) { + $content = str_replace('{ssl_bundle_comment}', '', $content); + } else { + $content = str_replace('{ssl_bundle_comment}', '#', $content); + } wf("$vhost_conf_dir/ispconfig.vhost", $content); @@ -972,11 +977,11 @@ $content = str_replace('{vhost_port}', $conf['nginx']['vhost_port'], $content); if(is_file($install_dir.'/interface/ssl/ispserver.crt') && is_file($install_dir.'/interface/ssl/ispserver.key')) { - $content = str_replace('{ssl_on}', ' ssl', $content); + $content = str_replace('{ssl_on}', ' on', $content); $content = str_replace('{ssl_comment}', '', $content); $content = str_replace('{fastcgi_ssl}', 'on', $content); } else { - $content = str_replace('{ssl_on}', '', $content); + $content = str_replace('{ssl_on}', ' off', $content); $content = str_replace('{ssl_comment}', '#', $content); $content = str_replace('{fastcgi_ssl}', 'off', $content); } -- Gitblit v1.9.1