* Fixes #507 permissions on /var/lib/amavis
This commit is contained in:
Thomas VIAL 2017-02-07 23:17:03 +01:00 committed by GitHub
parent 0a6733c65a
commit 8cf4f839ee

View file

@ -917,7 +917,7 @@ function _fix_var_mail_permissions() {
function _fix_var_amavis_permissions() {
notify 'task' 'Fixing /var/lib/amavis permissions'
if [ `find /var/lib/amavis -maxdepth 3 -a \( \! -user amavis -o \! -group amavis \) | grep -c .` != 0 ]; then
if [ `find /var/lib/amavis/* -maxdepth 3 -a \( \! -user amavis -o \! -group amavis \) | grep -c .` != 0 ]; then
notify 'inf' "Fixing /var/lib/amavis permissions"
chown -R amavis:amavis /var/lib/amavis
else