Fix: only chmod when there are files (#3203)

This commit is contained in:
Casper 2023-03-26 14:30:34 +02:00 committed by GitHub
parent e12b032f77
commit 6fa06f4986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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