From 7120b51cd52076e2eabd90be9a0a4d11209b0ee7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 14 Jun 2008 13:20:34 -0400
Subject: [PATCH] - Deleted old login script - Improved the list generator - Added delete icon to database list

---
 install/lib/installer_base.lib.php |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 42325db..6880e98 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -42,7 +42,7 @@
         $this->conf = $conf;
     }
 	
-    //: TODO  Implement the translation function and langauge files for the installer.
+    //: TODO  Implement the translation function and language files for the installer.
 	public function lng($text)
     {
 		return $text;
@@ -153,7 +153,7 @@
 		}
 	}
 	
-	//** Create a recors in the
+	//** Create the server record in the database
 	public function add_database_server_record() {
 		
 		$server_ini_content = rf("tpl/server.ini.master");
@@ -183,7 +183,24 @@
         wf($full_file_name, $content);
     }
 
-
+	public function configure_jailkit()
+    {
+        $cf = $this->conf['jailkit'];
+		$config_dir = $cf['config_dir'];
+		$jk_init = $cf['jk_init'];
+		$jk_chrootsh = $cf['jk_chrootsh'];
+		
+		if (is_dir($config_dir))
+		{
+			if(is_file($config_dir.'/'.$jk_init)) copy($config_dir.'/'.$jk_init, $config_dir.'/'.$jk_init.'~');
+			if(is_file($config_dir.'/'.$jk_chrootsh.".master")) copy($config_dir.'/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh.'~');
+			
+			copy('tpl/'.$jk_init.".master", $config_dir.'/'.$jk_init);
+			copy('tpl/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh);
+		}
+		
+    }
+        
 	public function configure_postfix($options = '')
     {
         $cf = $this->conf['postfix'];

--
Gitblit v1.9.1