Fix Redis migration
parent
ce29cf3220
commit
e795898b80
|
@ -52,7 +52,7 @@ for file in $(ls /data/dkim/keys/); do
|
||||||
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/txt/${file})"
|
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"
|
||||||
fi
|
fi
|
||||||
rm /data/dkim/{keys,txt}/${file}
|
rm /data/dkim/{keys,txt}/${file}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue