This commit is contained in:
Andras Bacsai committed 2023-05-24 15:25:08 +02:00
1 parent a0306f3951
commit 167379b0e0
23 files changed
+118 -125

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ class Form extends Component
if ($this->destination->attachedTo()) {
return $this->emit('error', 'You must delete all resources before deleting this destination.');
}
instantRemoteProcess(["docker network disconnect {$this->destination->network} coolify-proxy"], $this->destination->server, throwError: false);
instantRemoteProcess(['docker network rm -f ' . $this->destination->network], $this->destination->server);
instant_remote_process(["docker network disconnect {$this->destination->network} coolify-proxy"], $this->destination->server, throwError: false);
instant_remote_process(['docker network rm -f ' . $this->destination->network], $this->destination->server);
}
$this->destination->delete();
return redirect()->route('dashboard');