Automatisation configuration

This commit is contained in:
Michael RICOIS 2012-01-16 14:29:31 +00:00
parent 4ba20418c6
commit 0023f87458

View File

@ -60,18 +60,15 @@ function writeConfig()
$arrayConfig = array(
'mysql.php',
'smtp.php',
'sphinx.php',
'stockage.php',
);
foreach($arrayConfig as $config) {
passthru('cp -v '.
realpath(dirname(__FILE__)).'/'.$hostname.'/'.$config.' ' .
realpath(dirname(__FILE__)).'/'.$config);
}
passthru('cp -v '.
realpath(dirname(__FILE__)).'/'.$hostname.'/configuration.ini'.' '.
realpath(dirname(__FILE__)).'/../application/config/configuration.ini');
require_once realpath(dirname(__FILE__)).'/config.php';
passthru('ln -s '.DOC_WEB_LOCAL.' '.realpath(dirname(__FILE__)).'/../public/data');
}