Fix docker-entrypoint, fixes key merging from file to Redis
parent
a5da2f759f
commit
a46a84a949
|
@ -50,7 +50,7 @@ fi
|
||||||
for file in $(ls /data/dkim/keys/); do
|
for file in $(ls /data/dkim/keys/); do
|
||||||
domain=${file%.dkim}
|
domain=${file%.dkim}
|
||||||
if [[ -f /data/dkim/txt/${file} ]]; then
|
if [[ -f /data/dkim/txt/${file} ]]; then
|
||||||
redis-cli -h redis-mailcow HSET DKIM_PUB_KEYS "${domain}" "$(cat /data/dkim/keys/${domain})"
|
redis-cli -h redis-mailcow HSET DKIM_PUB_KEYS "${domain}" "$(cat /data/dkim/txt/${file})"
|
||||||
redis-cli -h redis-mailcow HSET DKIM_PRIV_KEYS "${domain}" "$(cat /data/dkim/keys/${file})"
|
redis-cli -h redis-mailcow HSET DKIM_PRIV_KEYS "${domain}" "$(cat /data/dkim/keys/${file})"
|
||||||
redis-cli -h redis-mailcow HSET DKIM_SELECTORS "${domain}" "dkim.${domain}"
|
redis-cli -h redis-mailcow HSET DKIM_SELECTORS "${domain}" "dkim.${domain}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue