From 6fa06f4986f11eb882b8bd0db0338f20389df1dc Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 26 Mar 2023 14:30:34 +0200 Subject: [PATCH] Fix: only chmod when there are files (#3203) --- target/scripts/startup/setup.d/dovecot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/scripts/startup/setup.d/dovecot.sh b/target/scripts/startup/setup.d/dovecot.sh index fbb01871..2d03b030 100644 --- a/target/scripts/startup/setup.d/dovecot.sh +++ b/target/scripts/startup/setup.d/dovecot.sh @@ -87,8 +87,8 @@ function _setup_dovecot_sieve fi chown dovecot:root -R /usr/lib/dovecot/sieve-* - find /usr/lib/dovecot/sieve-* -type d -exec chmod 755 {} \; - chmod +x /usr/lib/dovecot/sieve-{filter,pipe}/* + find /usr/lib/dovecot/sieve-* -type d -exec chmod 755 {} + + find /usr/lib/dovecot/sieve-{filter,pipe} -type f -exec chmod +x {} + } function _setup_dovecot_quota