Update start-mailserver.sh

This commit is contained in:
Thomas VIAL 2017-02-07 22:53:36 +01:00 committed by GitHub
parent 741264275f
commit 545f840cf2
1 changed files with 1 additions and 1 deletions

View File

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