diff --git a/frontend/public/setup.php b/frontend/public/setup.php index f85fdf062..8e4cb1dcf 100644 --- a/frontend/public/setup.php +++ b/frontend/public/setup.php @@ -1,7 +1,11 @@ = 7) { + if($currentStep >= 7 && file_exists("../app/storage/config/database.json") && file_exists("../app/storage/config/paperwork.json")) { header("Location: /"); + }else if(!file_exists("../app/storage/config/database.json")) { + $currentStep = 3; + }else if(!file_exists("../app/storage/config/paperwork.json")) { + $currentStep = 4; } ?> @@ -681,4 +685,4 @@ function toggleButton(field, onload) { }); - \ No newline at end of file +