From c58e3f77c9c019ea1f47705bee01d63055df85c5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 29 Jun 2007 10:45:59 -0400
Subject: [PATCH] updated installer and sql dump

---
 install/lib/installer_base.lib.php |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index f97c4b4..c711dcf 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -104,7 +104,7 @@
 		Create postfix configuration files
 	*/
 	
-	function configure_postfix() {
+	function configure_postfix($options = '';) {
 		global $conf;
 		
 		if(!is_dir($conf["dist_postfix_config_dir"])) $this->error("The postfix configuration directory ".$conf["dist_postfix_config_dir"]." does not exist.");
@@ -248,13 +248,14 @@
   flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
 		
 		*/
+		if(stristr($options,'dont-create-certs') {
+			// Create the SSL certificate
+			$command = "cd ".$conf["dist_postfix_config_dir"]."; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509";
+			exec($command);
 		
-		// Create the SSL certificate
-		$command = "cd ".$conf["dist_postfix_config_dir"]."; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509";
-		exec($command);
-		
-		$command = "chmod o= ".$conf["dist_postfix_config_dir"]."/smtpd.key";
-		caselog($command." &> /dev/null", __FILE__, __LINE__,"EXECUTED: ".$command,"Failed to execute the command ".$command);
+			$command = "chmod o= ".$conf["dist_postfix_config_dir"]."/smtpd.key";
+			caselog($command." &> /dev/null", __FILE__, __LINE__,"EXECUTED: ".$command,"Failed to execute the command ".$command);
+		}
 		
 		/*
 		We have to change the permissions of the courier authdaemon directory

--
Gitblit v1.9.1