feat: add retry functionality for server validation process

This commit is contained in:
Andras Bacsai
2025-10-10 10:13:08 +02:00
parent 00cb06150e
commit 2bca22082c
2 changed files with 16 additions and 0 deletions

View File

@@ -64,6 +64,19 @@ class ValidateAndInstall extends Component
$this->init();
}
public function retry()
{
$this->authorize('update', $this->server);
$this->uptime = null;
$this->supported_os_type = null;
$this->docker_installed = null;
$this->docker_compose_installed = null;
$this->docker_version = null;
$this->error = null;
$this->number_of_tries = 0;
$this->init();
}
public function validateConnection()
{
$this->authorize('update', $this->server);