diff --git a/app/Livewire/Server/Form.php b/app/Livewire/Server/Form.php index bb9c7c3a1..2ced33461 100644 --- a/app/Livewire/Server/Form.php +++ b/app/Livewire/Server/Form.php @@ -68,6 +68,9 @@ public function instantSave() return handleError($e, $this); } } + public function revalidate() { + $this->validateServer(); + } public function checkLocalhostConnection() { $uptime = $this->server->validateConnection(); diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php index 209f951ef..b7af84d30 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -10,12 +10,17 @@ @else Save + + This will revalidate the server, install / update Docker Engine, Docker Compose and all related + configuration. It will also restart Docker Engine, so your running containers will be unreachable + for the time being. + @endif - @if (!$server->isFunctional()) - You can't use this server until it is validated. - @else + @if ($server->isFunctional()) Server is reachable and validated. + @else + You can't use this server until it is validated. @endif @if ((!$server->settings->is_reachable || !$server->settings->is_usable) && $server->id !== 0)