From bd645054517b063a66ec3b489c19dee956c9e6b9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 6 Nov 2024 12:42:16 +0100 Subject: [PATCH] fix: do not stop sentinel on Coolify restart --- app/Console/Commands/Init.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 485af2b39..c802fb116 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -39,7 +39,7 @@ class Init extends Command } // Backward compatibility - $this->disable_metrics(); + // $this->disable_metrics(); $this->replace_slash_in_environment_name(); $this->restore_coolify_db_backup(); $this->update_user_emails(); @@ -80,19 +80,19 @@ class Init extends Command } } - private function disable_metrics() - { - if (version_compare('4.0.0-beta.312', config('version'), '<=')) { - foreach ($this->servers as $server) { - if ($server->settings->is_metrics_enabled === true) { - $server->settings->update(['is_metrics_enabled' => false]); - } - if ($server->isFunctional()) { - StopSentinel::dispatch($server)->onQueue('high'); - } - } - } - } + // private function disable_metrics() + // { + // if (version_compare('4.0.0-beta.312', config('version'), '<=')) { + // foreach ($this->servers as $server) { + // if ($server->settings->is_metrics_enabled === true) { + // $server->settings->update(['is_metrics_enabled' => false]); + // } + // if ($server->isFunctional()) { + // StopSentinel::dispatch($server)->onQueue('high'); + // } + // } + // } + // } private function update_user_emails() {