issue #0002043 : Ajout de configuration spécifique en dehors de l'installation
This commit is contained in:
parent
3f1610665f
commit
a167e23c09
@ -39,6 +39,8 @@ try {
|
||||
array(
|
||||
'help|?' => "Affiche les informations d'utilisation",
|
||||
'install' => "Installe et configure",
|
||||
'incron' => "Create incron file",
|
||||
'cron' => "Create cron file",
|
||||
)
|
||||
);
|
||||
$opts->parse();
|
||||
@ -104,11 +106,6 @@ if(isset($opts->install))
|
||||
|
||||
} else {
|
||||
|
||||
//Création configuration incron
|
||||
if ( file_exist('/etc/incron.d') ) {
|
||||
file_put_contents('/etc/incron.d/bilanclient', $c->profil->path->data . "/bilanclient IN_CLOSE_WRITE php /home/vhosts/extranet/scripts/jobs/sendBilanClient.php --file $#");
|
||||
}
|
||||
|
||||
//Création des liens symboliques pour l'impression
|
||||
if (!file_exists($c->profil->path->pages.'/themes/default/images'))
|
||||
passthru('ln -vs '.APPLICATION_PATH.'/../public/themes/default/images '.
|
||||
@ -129,5 +126,27 @@ if(isset($opts->install))
|
||||
passthru('chown -R www-data: '.APPLICATION_PATH.'/../');
|
||||
}
|
||||
|
||||
echo "End.\n";
|
||||
}
|
||||
|
||||
if ( $opts->incron ) {
|
||||
|
||||
echo "Création configuration incron.\n";
|
||||
|
||||
if ( file_exist('/etc/incron.d') ) {
|
||||
file_put_contents('/etc/incron.d/bilanclient', $c->profil->path->data . "/bilanclient IN_CLOSE_WRITE php /home/vhosts/extranet/scripts/jobs/sendBilanClient.php --file $#");
|
||||
}
|
||||
|
||||
echo "Don't forget to restart incron. sudo service incron restart.\n";
|
||||
echo "Fin de la configuration.\n";
|
||||
}
|
||||
|
||||
if ( $opts->cron ) {
|
||||
|
||||
echo "Création configuration cron.\n";
|
||||
|
||||
echo "Don't forget to restart cron. sudo service cron restart.";
|
||||
echo "End.\n";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user