mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-27 00:31:32 +00:00
[Dovecot] fix repl_health.sh
This commit is contained in:
@@ -11,7 +11,7 @@ fi
|
|||||||
|
|
||||||
# Is replication active?
|
# Is replication active?
|
||||||
# grep on file is less expensive than doveconf
|
# grep on file is less expensive than doveconf
|
||||||
if ! grep -qi mail_replica /etc/dovecot/dovecot.conf; then
|
if [ -n ${MAILCOW_REPLICA_IP} ]; then
|
||||||
${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
|
${REDIS_CMDLINE} SET DOVECOT_REPL_HEALTH 1 > /dev/null
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user