From b07ad2c0ee493e5b3fb97e300f3eea489bc92001 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 9 Feb 2021 06:01:04 -0700 Subject: [PATCH] perf(RESTORE): use docker-compose stop timeout --- backup/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restore.sh b/backup/restore.sh index 2bc918b..0f5db92 100644 --- a/backup/restore.sh +++ b/backup/restore.sh @@ -368,7 +368,7 @@ if [ "$restoreSQL" -eq 1 ]; then fi ### stop containers (necessary for all restore operations except SQL) -if ! docker-compose down > /dev/null 2>&1; then +if ! docker-compose down --timeout "${dockerStopTimeout}" > /dev/null 2>&1; then writeLog 'error' '20' "Unable to bring mailcow containers down -- cannot reliably restore. Aborting." exitError 20 fi