Update directory depth for service file search

This commit is contained in:
FusionPBX
2026-05-28 08:09:02 +00:00
committed by GitHub
parent 713aa12cb3
commit a621b5401c
+2 -2
View File
@@ -796,8 +796,8 @@ function restart_services($text, settings $settings) {
} }
// Get the list of services // Get the list of services
$core_files = glob(dirname(__DIR__, 4) . "/core/*/resources/service/".$search_file_name.".service"); $core_files = glob(dirname(__DIR__, 2) . "/core/*/resources/service/".$search_file_name.".service");
$app_files = glob(dirname(__DIR__, 4) . "/app/*/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); $service_files = array_merge($core_files, $app_files);
// Restart each of the services // Restart each of the services