getmail: remove temp file usage (#3920)
This commit is contained in:
parent
3649699197
commit
267fc552d2
|
@ -18,10 +18,10 @@ function _setup_getmail() {
|
||||||
CONFIGS=1
|
CONFIGS=1
|
||||||
ID=$(cut -d '-' -f 3 <<< "${FILE}" | cut -d '.' -f 1)
|
ID=$(cut -d '-' -f 3 <<< "${FILE}" | cut -d '.' -f 1)
|
||||||
local GETMAIL_CONFIG="${GETMAILRC}/getmailrc-${ID}"
|
local GETMAIL_CONFIG="${GETMAILRC}/getmailrc-${ID}"
|
||||||
cat /etc/getmailrc_general >"${GETMAIL_CONFIG}.tmp"
|
|
||||||
echo -e "message_log = /var/log/mail/getmail-${ID}.log\n" >>"${GETMAIL_CONFIG}.tmp"
|
cat /etc/getmailrc_general >"${GETMAIL_CONFIG}"
|
||||||
cat "${GETMAIL_CONFIG}.tmp" "${FILE}" >"${GETMAIL_CONFIG}"
|
echo -e "message_log = /var/log/mail/getmail-${ID}.log\n" >>"${GETMAIL_CONFIG}"
|
||||||
rm "${GETMAIL_CONFIG}.tmp"
|
cat "${FILE}" >>"${GETMAIL_CONFIG}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ expand_keys = true;
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# We do not use `{{HOSTNAME}}` but only `{{COMPRES}}` to better support
|
# We do not use `{{HOSTNAME}}` but only `{{COMPRESS}}` to better support
|
||||||
# Kubernetes, see https://github.com/orgs/docker-mailserver/discussions/3922
|
# Kubernetes, see https://github.com/orgs/docker-mailserver/discussions/3922
|
||||||
cat >"${RSPAMD_LOCAL_D}/history_redis.conf" << "EOF"
|
cat >"${RSPAMD_LOCAL_D}/history_redis.conf" << "EOF"
|
||||||
# documentation: https://rspamd.com/doc/modules/history_redis.html
|
# documentation: https://rspamd.com/doc/modules/history_redis.html
|
||||||
|
|
Loading…
Reference in New Issue