feature(RESTORE): restart mailcow after completion
This commit is contained in:
parent
8c6019f7da
commit
84605567cd
@ -553,8 +553,11 @@ if [ "$restoreRedis" -eq 1 ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#TODO: restart docker containers
|
### restart mailcow
|
||||||
#TODO: optionally reindex dovecot (parameter)
|
if ! docker-compose up -d > /dev/null 2>&1; then
|
||||||
|
writeLog 'warn' '21' "Unable to automatically start mailcow containers. Please attempt a manual start and note any errors."
|
||||||
|
warnCount=$((warnCount+1))
|
||||||
|
fi
|
||||||
|
|
||||||
### exit gracefully
|
### exit gracefully
|
||||||
if [ "$errorCount" -gt 0 ]; then
|
if [ "$errorCount" -gt 0 ]; then
|
||||||
@ -582,6 +585,7 @@ fi
|
|||||||
# 13: restoring SQL dump was unsuccessful
|
# 13: restoring SQL dump was unsuccessful
|
||||||
# 2x: Docker/Docker-Compose errors
|
# 2x: Docker/Docker-Compose errors
|
||||||
# 20: cannot bring docker container(s) down successfully
|
# 20: cannot bring docker container(s) down successfully
|
||||||
|
# 21: cannot bring docker container(s) up successfully
|
||||||
# 5x: File restore errors
|
# 5x: File restore errors
|
||||||
# 51: cannot locate source files in backup directory
|
# 51: cannot locate source files in backup directory
|
||||||
# 52: error restoring one or more files
|
# 52: error restoring one or more files
|
||||||
|
Loading…
Reference in New Issue
Block a user