[Rspamd] Fix map permissions for www
[Web] Allow to manage global maps in UI (WIP)
This commit is contained in:
@@ -8,6 +8,8 @@ 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
|
||||
|
||||
DOVECOT_V4=
|
||||
@@ -49,8 +51,10 @@ touch /etc/rspamd/custom/global_mime_from_blacklist.map \
|
||||
/etc/rspamd/custom/bad_words_de.map
|
||||
|
||||
# www-data (82) group needs to write to these files
|
||||
chown -R _rspamd:82 /etc/rspamd/custom
|
||||
chmod -R g+w /etc/rspamd/custom
|
||||
chown root:root /etc/rspamd/custom/
|
||||
chmod 0755 /etc/rspamd/custom/
|
||||
chown -R _rspamd:www-access /etc/rspamd/custom/*
|
||||
chmod -R 664 /etc/rspamd/custom/*
|
||||
|
||||
# Run hooks
|
||||
for file in /hooks/*; do
|
||||
|
Reference in New Issue
Block a user