diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 7949b2457..4a276cfc4 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -2,6 +2,7 @@ namespace App\Console\Commands; +use App\Actions\Server\StopSentinel; use App\Enums\ApplicationDeploymentStatus; use App\Jobs\CleanupHelperContainersJob; use App\Models\ApplicationDeploymentQueue; @@ -23,6 +24,16 @@ public function handle() { $this->alive(); get_public_ips(); + if (version_compare('4.0.0-beta.312', config('version'), '<=')) { + $servers = Server::all(); + foreach ($servers as $server) { + $server->settings->update(['is_metrics_enabled' => false]); + if ($server->isFunctional()) { + StopSentinel::dispatch($server); + } + } + } + $full_cleanup = $this->option('full-cleanup'); $cleanup_deployments = $this->option('cleanup-deployments'); diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index d8144e931..5cba620dd 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -146,15 +146,13 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1