OK' : 'Error: ' . $response . '';
if ($response === true) {
break;
}
usleep(1500000);
$retry++;
}
echo $last_response;
}
if ($_GET['ACTION'] == "stop") {
$retry = 0;
while (docker('sogo-mailcow', 'info')['State']['Running'] && $retry <= 3) {
$response = docker('sogo-mailcow', 'post', 'stop');
$last_response = ($response === true) ? 'OK' : 'Error: ' . $response . '';
if ($response === true) {
break;
}
usleep(1500000);
$retry++;
}
echo $last_response;
}
?>