Update config.lua (#6864)

Added an option to check Windows ProgramData
This commit is contained in:
jrmcclean 2024-07-23 10:07:36 -04:00 committed by GitHub
parent dac6e6a6e6
commit 96f6e87224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ function config()
return "/usr/local/etc/fusionpbx/config.conf";
elseif (file_exists("/etc/fusionpbx/config.conf")) then
return "/etc/fusionpbx/config.conf";
elseif file_exists(os.getenv("SystemDrive") .. "/ProgramData/fusionpbx/config.conf") then
return os.getenv("SystemDrive") .. "/ProgramData/fusionpbx/config.conf"
else
require "resources.config";
return config_file;