From df0089f3adb62ad40d0ec3296eddc52f6b4463fe Mon Sep 17 00:00:00 2001 From: mcramer <m.cramer@pixcept.de> Date: Mon, 08 Jun 2009 02:45:15 -0400 Subject: [PATCH] - checking for correct working directory in install and update - checking for running instance in server.php --- install/install.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/install/install.php b/install/install.php index 9474eb5..6765170 100644 --- a/install/install.php +++ b/install/install.php @@ -53,6 +53,10 @@ //** Include the base class of the installer class require_once('lib/installer_base.lib.php'); +//** 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"); + //** Install logfile define('ISPC_LOG_FILE', '/var/log/ispconfig_install.log'); define('ISPC_INSTALL_ROOT', realpath(dirname(__FILE__).'/../')); -- Gitblit v1.9.1