[Postfix] Fix smtp last login on replicated setups

This commit is contained in:
andryyy
2020-09-28 16:23:49 +02:00
parent b3c557f690
commit 836ea1508e
3 changed files with 7 additions and 2 deletions
@@ -1,5 +1,7 @@
#!/bin/bash
REDIS_SLAVEOF_IP=__REDIS_SLAVEOF_IP__
# Do not attempt to write to slave
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT}"