From 297acc9fcd3582110ed64a74c6681b670d3f9b73 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 19 Dec 2012 16:29:18 +0000 Subject: [PATCH] Configure : path --- scripts/build/configure.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build/configure.php b/scripts/build/configure.php index d1e616c4..7779093c 100644 --- a/scripts/build/configure.php +++ b/scripts/build/configure.php @@ -17,8 +17,9 @@ set_include_path(implode(PATH_SEPARATOR, array( ))); //Copy configuration +$configDir = realpath(dirname(__FILE__)).'/config'; $hostname = exec('echo $(hostname)'); -passthru('cp -fv ./'.$hostname.'/application.ini '.APPLICATION_PATH.'/configs/application.ini'); +passthru('cp -fv '. $configDir.'/'.$hostname.'/application.ini '.APPLICATION_PATH.'/configs/application.ini'); /** Zend_Application */ require_once 'Zend/Application.php'; @@ -56,7 +57,7 @@ if(isset($opts->install)) //Création des répertoires mkdir(APPLICATION_PATH . '/../data'); mkdir(APPLICATION_PATH . '/../data/sessions'); - + //Modification des permissions passthru('chown -R www-data: '.APPLICATION_PATH.'/../'); passthru('chmod +x '.APPLICATION_PATH.'/../scripts/cron.php');