Configure : path

This commit is contained in:
Michael RICOIS 2012-12-19 16:29:18 +00:00
parent 5ebf98e79d
commit 297acc9fcd

View File

@ -17,8 +17,9 @@ set_include_path(implode(PATH_SEPARATOR, array(
))); )));
//Copy configuration //Copy configuration
$configDir = realpath(dirname(__FILE__)).'/config';
$hostname = exec('echo $(hostname)'); $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 */ /** Zend_Application */
require_once 'Zend/Application.php'; require_once 'Zend/Application.php';
@ -56,7 +57,7 @@ if(isset($opts->install))
//Création des répertoires //Création des répertoires
mkdir(APPLICATION_PATH . '/../data'); mkdir(APPLICATION_PATH . '/../data');
mkdir(APPLICATION_PATH . '/../data/sessions'); mkdir(APPLICATION_PATH . '/../data/sessions');
//Modification des permissions //Modification des permissions
passthru('chown -R www-data: '.APPLICATION_PATH.'/../'); passthru('chown -R www-data: '.APPLICATION_PATH.'/../');
passthru('chmod +x '.APPLICATION_PATH.'/../scripts/cron.php'); passthru('chmod +x '.APPLICATION_PATH.'/../scripts/cron.php');