[Dovecot] WIP: Read env vars for cronjobs from prepared file

This commit is contained in:
andryyy
2020-05-04 07:49:30 +02:00
parent ffb6dae8c7
commit 9078031255
5 changed files with 12 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ catch_non_zero() {
echo "Command ${CMD} failed to execute, exit code was ${EC}"
fi
}
source /source_env.sh
# 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}"