From c408f39e5bd2900bf2c4fe99bd1d9ac976844440 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 8 Jun 2020 00:44:15 -0500 Subject: [PATCH] check for INSTALL environment var --- app/Http/Middleware/CheckInstalled.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/CheckInstalled.php b/app/Http/Middleware/CheckInstalled.php index 0e8fcc40b0..d1fa9067fc 100644 --- a/app/Http/Middleware/CheckInstalled.php +++ b/app/Http/Middleware/CheckInstalled.php @@ -39,7 +39,7 @@ class CheckInstalled */ public function handle($request, Closure $next) { - $installed = file_exists(base_path('config.php')); + $installed = !config('librenms.install') && file_exists(base_path('config.php')); $is_install_route = $request->is('install*'); if (!$installed && !$is_install_route) {