issue #0001423 : Configure
This commit is contained in:
parent
5e5c82db89
commit
d763b52b8c
@ -16,6 +16,15 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
//Copie de la configuration
|
||||
$configDir = realpath(dirname(__FILE__)).'/config';
|
||||
$appconfigDir = APPLICATION_PATH.'/configs';
|
||||
$hostname = exec('echo $(hostname)');
|
||||
|
||||
passthru('cp -fv '.
|
||||
$configDir.'/'.$hostname.'/application.ini' . ' ' .
|
||||
$appconfigDir.'/application.ini');
|
||||
|
||||
/** Zend_Application */
|
||||
require_once 'Zend/Application.php';
|
||||
|
||||
@ -49,20 +58,12 @@ if(isset($opts->help))
|
||||
|
||||
$c = new Zend_Config($application->getOptions());
|
||||
|
||||
$configDir = realpath(dirname(__FILE__)).'/config';
|
||||
$appconfigDir = APPLICATION_PATH.'/configs';
|
||||
$hostname = exec('echo $(hostname)');
|
||||
|
||||
if(isset($opts->check))
|
||||
{
|
||||
|
||||
}
|
||||
elseif(isset($opts->install))
|
||||
{
|
||||
//Copie de la configuration
|
||||
passthru('cp -fv '.
|
||||
$configDir.'/'.$hostname.'/application.ini' . ' ' .
|
||||
$appconfigDir.'/application.ini');
|
||||
|
||||
//Modification des permissions
|
||||
passthru('chown -R www-data: '.APPLICATION_PATH.'/../');
|
||||
|
Loading…
Reference in New Issue
Block a user