From aafd88dafbf1f69f66fc4b59d0b067abf13110b1 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Sat, 13 Nov 2021 13:24:15 +0000 Subject: [PATCH] dovecot: Ensure scripts are executable --- config/service/dovecot/container/run-dovecot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/service/dovecot/container/run-dovecot b/config/service/dovecot/container/run-dovecot index b8ab660..cccdb97 100755 --- a/config/service/dovecot/container/run-dovecot +++ b/config/service/dovecot/container/run-dovecot @@ -6,8 +6,9 @@ for file in /etc/dovecot/*.template; do envsubst "$ENV_NAMES" < "$file" > "$(echo "$file" | awk -F '.template$' '{print $1}')" done -# Compile Sieve scripts. +# Compile Sieve scripts and ensure correct permissions. find /etc/dovecot -name '*.sieve' -execdir sievec {} \; +find /etc/dovecot -name '*.script' -execdir chmod 0755 {} \; # Set up environment variables for Rspamd integration. env | awk -F_ '$1 == "RSPAMD" {print $0}' > /etc/dovecot/rspamd.env