container: fix timeout handling in restart

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-06-25 17:22:36 +02:00
parent aa529242c7
commit fec19e1808
+1 -1
View File
@@ -575,7 +575,7 @@ case $cmd in
stop "$name"
timeout=20
while running "$name"; do
_=$((timeoute -= 1))
_=$((timeout -= 1))
if [ $timeout -le 0 ]; then
log "Timeout waiting for container $1 to stop before restarting it."
exit 1