From ebd2251b99125b41f0a59106ee7c10ee15899997 Mon Sep 17 00:00:00 2001 From: jrmcclean <68025295+jrmcclean@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:14:05 -0400 Subject: [PATCH] Update install.php (#6861) Added an options for Windows ProgramData folder --- core/install/install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/install/install.php b/core/install/install.php index 9f6724a153..66099f5653 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -81,6 +81,10 @@ //linux $config_exists = true; } + elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) { + //Windows + $config_exists = true; + } if ($config_exists) { $msg = "Already Installed"; //report to user @@ -100,6 +104,10 @@ //linux $config_path = "/etc/fusionpbx"; } + elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.php')) { + //Windows + $config_path = getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' ; + } if (isset($config_path)) { if (is_writable($config_path)) { //include the config.php file