1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-02 03:38:23 +02:00

Fix: dovecot resync: failed connection refused

This commit is contained in:
Hassan A Hashim 2024-08-29 15:22:28 +03:00
parent a20d927605
commit e8b6eb34d6
No known key found for this signature in database

View File

@ -564,8 +564,8 @@ function restore() {
# Skip prompt if --yes flag is present
if [[ "${MAILCOW_YES_TO_ALL}" == "1" ]]; then
echo -e "${GREEN_COLOR}Forcing a resync now due to --yes flag.${RESET}"
# Why sleep 1 second? due to `https://github.com/mailcow/mailcow-dockerized/pull/6030#discussion_r1735971143`
sleep 1s
# Why sleep 2 seconds? due to `https://github.com/mailcow/mailcow-dockerized/pull/6030#discussion_r1735971143`
sleep 2s
docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*'
else
read -p "Force a resync now? [y|N] " FORCE_RESYNC