Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
/* If called from CLI, no password or graphical interface */
if (php_sapi_name() == "cli") {
/* If called from CLI, no password or graphical interface */
if (php_sapi_name() == "cli") {
+ if ($cfg['installation_done'] == false) {
+ die("installation not completed yet\n");
+ }
if ((count($argv)>1) && $argv[1]=="clean_expired") {
$total = jirafeau_admin_clean();
echo "$total expired files deleted.";
if ((count($argv)>1) && $argv[1]=="clean_expired") {
$total = jirafeau_admin_clean();
echo "$total expired files deleted.";