Forráskód Böngészése

[Dovecot] fix repl_health.sh

FreddleSpl0it 1 éve
szülő
commit
a310493485
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      data/Dockerfiles/dovecot/repl_health.sh

+ 1 - 1
data/Dockerfiles/dovecot/repl_health.sh

@@ -11,7 +11,7 @@ fi
 
 # Is replication active?
 # 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
   exit
 fi