From 7ffdb9a32549fa1aaa3328134f7400cf3c745a81 Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Wed, 4 Sep 2024 13:30:01 +0100 Subject: [PATCH] [Legacy] Add check for install on legacy --- public/legacy/install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/legacy/install.php b/public/legacy/install.php index 2caa5389f..83b8cf2f6 100755 --- a/public/legacy/install.php +++ b/public/legacy/install.php @@ -42,6 +42,14 @@ if (!defined('sugarEntry')) { define('sugarEntry', true); } +if (!file_exists('./config.php') && file_exists('../../.installed_checked')) { + header('Location: ../#/install'); +} + +if (!file_exists('../../.installed_checked')){ + header('Location: ../install.php'); +} + // Set Globals global $sugar_version; global $current_user, $sugar_config;