Move add_missing service call to service update section

This commit is contained in:
FusionPBX
2026-05-24 15:37:07 +00:00
committed by GitHub
parent 4597798904
commit 695b7d7410
+4 -4
View File
@@ -191,10 +191,6 @@
echo "\n";
}
//add missing services
$service = new services();
$service->add_missing();
//show the help menu
if ($upgrade_type == 'help' or $upgrade_type == '-h' or $upgrade_type == '--help') {
@@ -471,6 +467,10 @@
//update main software source
if ($upgrade_type == 'services' or $upgrade_type == '-u' or $upgrade_type == '--service' or $upgrade_type == '--services') {
//add missing services
$service = new services();
$service->add_missing();
if (empty($argv[2]) || $argv[2] == 'update') {
//send a message to the console
echo "[ Update ] Update default services\n";