From 9a8ff9b5059d9203575cb4429bd84e43c9b0ebba Mon Sep 17 00:00:00 2001 From: fgerlits Date: Mon, 29 Jan 2007 10:35:37 +0000 Subject: [PATCH] fixed the include path (part of #2138) --- .../src/products/scheduler/bin/campcaster-scheduler.sh | 4 ++-- .../products/scheduler/bin/campcaster-scheduler_devenv.sh | 4 ++-- campcaster/src/products/scheduler/var/install/install.php | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/campcaster/src/products/scheduler/bin/campcaster-scheduler.sh b/campcaster/src/products/scheduler/bin/campcaster-scheduler.sh index f0ae6eaa2..47ebcc93f 100755 --- a/campcaster/src/products/scheduler/bin/campcaster-scheduler.sh +++ b/campcaster/src/products/scheduler/bin/campcaster-scheduler.sh @@ -91,12 +91,12 @@ case "$mode" in 'install') echo "Installing Campcaster scheduler database tables..." - php $vardir/install/install.php -c $config_file + BASE_DIR=$basedir php $vardir/install/install.php -c $config_file ;; 'uninstall') echo "Uninstalling Campcaster scheduler database tables..." - php $vardir/install/uninstall.php -c $config_file + BASE_DIR=$basedir php $vardir/install/uninstall.php -c $config_file ;; 'kill') diff --git a/campcaster/src/products/scheduler/bin/campcaster-scheduler_devenv.sh b/campcaster/src/products/scheduler/bin/campcaster-scheduler_devenv.sh index 0e2123e63..fa3b9b297 100755 --- a/campcaster/src/products/scheduler/bin/campcaster-scheduler_devenv.sh +++ b/campcaster/src/products/scheduler/bin/campcaster-scheduler_devenv.sh @@ -107,12 +107,12 @@ case "$mode" in 'install') echo "Installing Campcaster scheduler database tables..." - php $vardir/install/install.php -c $config_file + BASE_DIR=$usrdir php $vardir/install/install.php -c $config_file ;; 'uninstall') echo "Uninstalling Campcaster scheduler database tables..." - php $vardir/install/uninstall.php -c $config_file + BASE_DIR=$usrdir php $vardir/install/uninstall.php -c $config_file ;; 'kill') diff --git a/campcaster/src/products/scheduler/var/install/install.php b/campcaster/src/products/scheduler/var/install/install.php index bd11a1ebd..b02f45a64 100644 --- a/campcaster/src/products/scheduler/var/install/install.php +++ b/campcaster/src/products/scheduler/var/install/install.php @@ -19,9 +19,13 @@ if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) { exit(1); } +$oldIncludePath = get_include_path(); +$pearDir = getenv('BASE_DIR').'/lib/pear'; +set_include_path($pearDir.PATH_SEPARATOR.$oldIncludePath); + require_once('installInit.php'); require_once('installScheduler.php'); echo " * Scheduler install complete\n"; -?> \ No newline at end of file +?>