From 65145bc760351895f8a8e448a358c45455a59ad4 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 05 Oct 2010 09:30:49 -0400
Subject: [PATCH] Fixed issies in the installere where the file remote_action.inc.php is not created.

---
 install/dist/lib/fedora.lib.php |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/install/dist/lib/fedora.lib.php b/install/dist/lib/fedora.lib.php
index 8c77101..af31a8c 100644
--- a/install/dist/lib/fedora.lib.php
+++ b/install/dist/lib/fedora.lib.php
@@ -698,6 +698,13 @@
 		
 		wf("$install_dir/server/lib/$configfile", $content);
 		
+		//* Create the config file for remote-actions (but only, if it does not exist, because
+		//  the value is a autoinc-value and so changed by the remoteaction_core_module
+		if (!file_exists($install_dir.'/server/lib/remote_action.inc.php')) {
+			$content = '<?php' . "\n" . '$maxid_remote_action = 0;' . "\n" . '?>';
+			wf($install_dir.'/server/lib/remote_action.inc.php', $content);
+		}
+		
 		
 		//* Enable the server modules and plugins.
 		// TODO: Implement a selector which modules and plugins shall be enabled.

--
Gitblit v1.9.1