From: Jerome Jutteau Date: Sun, 13 Dec 2020 20:57:21 +0000 (+0100) Subject: [BUGFIX] avoid running admin cli if installation not finished X-Git-Tag: 4.3.0~9 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/dddcc255110ee8219bfb41943c6e4430a02139aa?hp=df31fed41e6f10218a99ece4a4f47571eea360f5 [BUGFIX] avoid running admin cli if installation not finished Signed-off-by: Jerome Jutteau --- diff --git a/admin.php b/admin.php index cfdfe30..ed55d2f 100644 --- a/admin.php +++ b/admin.php @@ -32,6 +32,9 @@ if (file_exists(JIRAFEAU_ROOT . 'install.php') /* 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.";