From cb8c86a5eb7b70feb29a2ef7503aae497d40bf57 Mon Sep 17 00:00:00 2001
From: wyrie <wyrie@ispconfig3>
Date: Wed, 02 Dec 2009 06:57:59 -0500
Subject: [PATCH] Implemented: FS#973 - Gentoo support for installer. Fixed FS#974 - Directory mode for firewall configuration

---
 install/install.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/install/install.php b/install/install.php
index 5c19b54..2e8606b 100644
--- a/install/install.php
+++ b/install/install.php
@@ -55,7 +55,9 @@
 
 //** Ensure that current working directory is install directory
 $cur_dir = getcwd();
-if(realpath(dirname(__FILE__)) != $cur_dir) die("Please run installation/update from _inside_ the install directory!\n");
+if(realpath(dirname(__FILE__)) != $cur_dir) {
+	chdir( realpath(dirname(__FILE__)) );
+}
 
 //** Install logfile
 define('ISPC_LOG_FILE', '/var/log/ispconfig_install.log');

--
Gitblit v1.9.1