diff --git a/Stable2.0/docker-entrypoint.sh b/Stable2.0/docker-entrypoint.sh index 70e7ae4..e453925 100644 --- a/Stable2.0/docker-entrypoint.sh +++ b/Stable2.0/docker-entrypoint.sh @@ -2,16 +2,11 @@ chmod 755 /var/lib/rspamd - [[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Autogenerated' > /etc/rspamd/override.d/worker-controller-password.inc -chown -R _rspamd:_rspamd /var/lib/rspamd \ - /etc/rspamd/local.d \ - /etc/rspamd/custom \ - /etc/rspamd/override.d \ - /etc/rspamd/rspamd.conf.local \ - /etc/rspamd/rspamd.conf.override \ - /etc/rspamd/plugins.d +mkdir -p /etc/rspamd/custom + +chown -R _rspamd:_rspamd /var/lib/rspamd /etc/rspamd/ # Fix missing default global maps, if any # These exists in UI and should not be removed @@ -34,10 +29,6 @@ touch /etc/rspamd/custom/global_mime_from_blacklist.map \ /etc/rspamd/custom/bulk_header.map \ /etc/rspamd/custom/bad_header.map -chown _rspamd:_rspamd /etc/rspamd/custom/ -chmod 0755 /etc/rspamd/custom/. -chmod 644 -R /etc/rspamd/custom/* - # If DQS KEY is set in mailcow.conf add Spamhaus DQS RBLs if [[ ! -z ${SPAMHAUS_DQS_KEY} ]]; then cat < /etc/rspamd/custom/dqs-rbl.conf