From 4484c9ad5f1125ae56bc62446494776cf3f0aa93 Mon Sep 17 00:00:00 2001 From: jrmcclean <68025295+jrmcclean@users.noreply.github.com> Date: Fri, 22 Dec 2023 17:32:42 -0500 Subject: [PATCH] Update install.php (#6853) * Update install.php Update config directory for windows from www folder to Programdata directory --- core/install/resources/classes/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/install/resources/classes/install.php b/core/install/resources/classes/install.php index 90a50ee26e..e3b3450bd2 100644 --- a/core/install/resources/classes/install.php +++ b/core/install/resources/classes/install.php @@ -66,8 +66,8 @@ if (!class_exists('install')) { $cache_location = '/var/cache/fusionpbx'; break; case "WIN": - $config_path = $_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.'resources'; - $config_file = $config_path.DIRECTORY_SEPARATOR.'config.conf'; + $system_drive = getenv('SystemDrive'); + $config_path = $system_drive . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' ; $config_file = $config_path.DIRECTORY_SEPARATOR.'config.conf'; $document_root = $_SERVER["DOCUMENT_ROOT"];