Fix Redis migration

master
andryyy 2017-05-14 20:16:43 +02:00
parent ce29cf3220
commit e795898b80
1 changed files with 1 additions and 1 deletions

View File

@ -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