perf(RESTORE): use docker-compose stop timeout
This commit is contained in:
parent
84605567cd
commit
b07ad2c0ee
@ -368,7 +368,7 @@ if [ "$restoreSQL" -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
### stop containers (necessary for all restore operations except SQL)
|
### 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."
|
writeLog 'error' '20' "Unable to bring mailcow containers down -- cannot reliably restore. Aborting."
|
||||||
exitError 20
|
exitError 20
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user