fix: old docker version error
This commit is contained in:
parent
363f525ad1
commit
16c71f3647
@ -56,14 +56,15 @@ class Form extends Component
|
|||||||
$this->uptime = $uptime;
|
$this->uptime = $uptime;
|
||||||
$this->emit('success', 'Server is reachable!');
|
$this->emit('success', 'Server is reachable!');
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Server is not rachable');
|
$this->emit('error', 'Server is not rachable');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if ($dockerVersion) {
|
if ($dockerVersion) {
|
||||||
$this->dockerVersion = $dockerVersion;
|
$this->dockerVersion = $dockerVersion;
|
||||||
$this->emit('proxyStatusUpdated');
|
$this->emit('proxyStatusUpdated');
|
||||||
$this->emit('success', 'Docker Engine 23+ is installed!');
|
$this->emit('success', 'Docker Engine 23+ is installed!');
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Old Docker version detected (lower than 23).');
|
$this->emit('error', 'Old (lower than 23) or no Docker version detected. Install Docker Engine on the General tab.');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return general_error_handler($e, that: $this);
|
return general_error_handler($e, that: $this);
|
||||||
|
@ -38,12 +38,13 @@ class ShowPrivateKey extends Component
|
|||||||
if ($uptime) {
|
if ($uptime) {
|
||||||
$this->emit('success', 'Server is reachable with this private key.');
|
$this->emit('success', 'Server is reachable with this private key.');
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Server is not reachable with this private key.');
|
$this->emit('error', 'Server is not reachable with this private key.');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if ($dockerVersion) {
|
if ($dockerVersion) {
|
||||||
$this->emit('success', 'Server is usable for Coolify.');
|
$this->emit('success', 'Server is usable for Coolify.');
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Old Docker version detected (lower than 23).');
|
$this->emit('error', 'Old (lower than 23) or no Docker version detected. Install Docker Engine on the General tab.');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \Exception($e->getMessage());
|
throw new \Exception($e->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user