Automatisation configuration
This commit is contained in:
parent
4ba20418c6
commit
0023f87458
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user