Compare commits
2 Commits
3a3b02685b
...
2747b10040
Author | SHA1 | Date | |
---|---|---|---|
|
2747b10040 | ||
|
876f8eee9e |
@ -57,7 +57,7 @@ doRestore() {
|
||||
return 0
|
||||
fi
|
||||
else
|
||||
if (! (cd "$sourceFiles/_data" && tar -cf - .) | (cd "${3}" && tar xvf -) > /dev/null 2>&1 ); then
|
||||
if (! (cd "$sourceFiles/_data" && tar -cf - .) | (cd "${2}" && tar xvf -) > /dev/null 2>&1 ); then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
@ -500,7 +500,6 @@ if [ "$restorePostfix" -eq 1 ]; then
|
||||
writeLog 'task' "Restoring postfix files"
|
||||
fi
|
||||
|
||||
# restore email messages
|
||||
doRestore "${COMPOSE_PROJECT_NAME}_postfix-vol-1" "$dockerVolumePostfix"; ec="$?"
|
||||
case "$ec" in
|
||||
0)
|
||||
@ -537,7 +536,6 @@ if [ "$restoreRspamd" -eq 1 ]; then
|
||||
writeLog 'task' "Restoring Rspamd files"
|
||||
fi
|
||||
|
||||
# restore email messages
|
||||
doRestore "${COMPOSE_PROJECT_NAME}_rspamd-vol-1" "$dockerVolumeRspamd"; ec="$?"
|
||||
case "$ec" in
|
||||
0)
|
||||
@ -574,7 +572,6 @@ if [ "$restoreRedis" -eq 1 ]; then
|
||||
writeLog 'task' "Restoring redis database"
|
||||
fi
|
||||
|
||||
# restore email messages
|
||||
doRestore "${COMPOSE_PROJECT_NAME}_redis-vol-1" "$dockerVolumeRedis"; ec="$?"
|
||||
case "$ec" in
|
||||
0)
|
||||
|
Loading…
Reference in New Issue
Block a user