feat: start Sentinel on servers.

This commit is contained in:
Andras Bacsai
2024-05-08 14:22:35 +02:00
parent 2ea27acdde
commit c618e58a11
5 changed files with 36 additions and 2 deletions

View File

@@ -55,10 +55,10 @@ class GetContainersStatus
$sentinel_found = json_decode($sentinel_found, true);
$status = data_get($sentinel_found, '0.State.Status', 'exited');
if ($status === 'running') {
ray('Sentinel');
ray('Checking with Sentinel');
$this->sentinel();
} else {
ray('Old way');
ray('Checking the Old way');
$this->old_way();
}
}