fix(cleanup): preserve self-hosted server IPs (#10480)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2026-05-31 21:50:28 +02:00
commit 8a52307255
2 files changed
+34 -4

No files matched your search

@@ -18,9 +18,13 @@ class CleanupUnreachableServers extends Command
if ($servers->count() > 0) {
foreach ($servers as $server) {
echo "Cleanup unreachable server ($server->id) with name $server->name";
$server->update([
'ip' => '1.2.3.4',
]);
if (isCloud()) {
$server->update([
'ip' => '1.2.3.4',
]);
} else {
$server->forceDisableServer();
}
}
}
}