cdca603ff5
[Rspamd] Fix permissions of controller password file [Unbound] Enable unbound-control
10 lines
448 B
Bash
Executable File
10 lines
448 B
Bash
Executable File
#!/bin/bash
|
|
|
|
chown -R _rspamd:_rspamd /var/lib/rspamd
|
|
chmod 755 /var/lib/rspamd
|
|
[[ ! -f /etc/rspamd/override.d/worker-controller-password.inc ]] && echo '# Placeholder' > /etc/rspamd/override.d/worker-controller-password.inc
|
|
chown _rspamd:_rspamd /etc/rspamd/override.d/worker-controller-password.inc
|
|
[[ ! -f /etc/rspamd/custom/sa-rules-heinlein ]] && echo '# to be auto-filled by dovecot-mailcow' > /etc/rspamd/custom/sa-rules-heinlein
|
|
|
|
exec "$@"
|