From 2822468ab002ba69f3b8de6b4bcc1272adc35e08 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Tue, 7 Feb 2017 21:36:39 +0100 Subject: [PATCH] Fixed path --- target/start-mailserver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index d0e83fd9..8369bce5 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -905,7 +905,7 @@ function _fix_var_mail_permissions() { notify 'task' 'Fixing /var/mail permissions' # Fix permissions, but skip this if 3 levels deep the user id is already set - if [ `find /var/mail -maxdepth 3 -a \( \! -user 5000 -o \! -group 5000 \) | grep -c .` != 0 ]; then + if [ `find /var/mail/* -maxdepth 3 -a \( \! -user 5000 -o \! -group 5000 \) | grep -c .` != 0 ]; then notify 'inf' "Fixing /var/mail permissions" chown -R 5000:5000 /var/mail else @@ -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