From dddcc255110ee8219bfb41943c6e4430a02139aa Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sun, 13 Dec 2020 21:57:21 +0100 Subject: [PATCH] [BUGFIX] avoid running admin cli if installation not finished Signed-off-by: Jerome Jutteau --- admin.php | 3 +++ 1 file changed, 3 insertions(+) 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."; -- 2.34.1