Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Fix: Do not delete SSH Key from disk during server validation error

peaklabs-dev845d32c94ca3
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 6eb9acf554..0834bf61b7 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -912,12 +912,9 @@ $schema://$host {
$isFunctional = $this->settings->is_reachable && $this->settings->is_usable && !$this->settings->force_disabled;
if (!$isFunctional) {
- if ($this->privateKey) {
- PrivateKey::deleteFromStorage($this->privateKey);
- }
Storage::disk('ssh-mux')->delete($this->muxFilename());
}
-
+
return $isFunctional;
}