[Rspamd] Slight changes to improve memory usage

[Web] Dirty hack to touch Rspamd maps a second time
This commit is contained in:
andryyy
2019-10-30 20:07:58 +01:00
parent a1971f7af8
commit 27de9dbf92
9 changed files with 11 additions and 9 deletions

View File

@@ -18,7 +18,6 @@ touch /etc/rspamd/rspamd.conf.local \
chmod 755 /var/lib/rspamd
addgroup --system --gid 82 www-access
[[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Autogenerated by mailcow' > /etc/rspamd/override.d/worker-controller-password.inc
@@ -39,7 +38,6 @@ fi
chown -R _rspamd:_rspamd /var/lib/rspamd \
/etc/rspamd/local.d \
/etc/rspamd/override.d \
/etc/rspamd/custom \
/etc/rspamd/rspamd.conf.local \
/etc/rspamd/rspamd.conf.override \
/etc/rspamd/plugins.d
@@ -62,9 +60,9 @@ touch /etc/rspamd/custom/global_mime_from_blacklist.map \
# www-data (82) group needs to write to these files
chown _rspamd:_rspamd /etc/rspamd/custom/
chmod 0755 /etc/rspamd/custom/
chown -R _rspamd:www-access /etc/rspamd/custom/*
chmod -R 664 /etc/rspamd/custom/*
chmod 0755 /etc/rspamd/custom/.
chown -R 82:82 /etc/rspamd/custom/*
chmod 644 -R /etc/rspamd/custom/*
# Run hooks
for file in /hooks/*; do