From a621b5401c8161fd3edead0b3b379cc10381e5fa Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 28 May 2026 08:09:02 +0000 Subject: [PATCH] Update directory depth for service file search --- core/upgrade/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index ae5821884..f387deec2 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -796,8 +796,8 @@ function restart_services($text, settings $settings) { } // Get the list of services - $core_files = glob(dirname(__DIR__, 4) . "/core/*/resources/service/".$search_file_name.".service"); - $app_files = glob(dirname(__DIR__, 4) . "/app/*/resources/service/".$search_file_name.".service"); + $core_files = glob(dirname(__DIR__, 2) . "/core/*/resources/service/".$search_file_name.".service"); + $app_files = glob(dirname(__DIR__, 2) . "/app/*/resources/service/".$search_file_name.".service"); $service_files = array_merge($core_files, $app_files); // Restart each of the services