Update start-mailserver.sh
This commit is contained in:
parent
741264275f
commit
545f840cf2
|
@ -905,7 +905,7 @@ function _fix_var_mail_permissions() {
|
||||||
notify 'task' 'Fixing /var/mail permissions'
|
notify 'task' 'Fixing /var/mail permissions'
|
||||||
|
|
||||||
# Fix permissions, but skip this if 3 levels deep the user id is already set
|
# 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"
|
notify 'inf' "Fixing /var/mail permissions"
|
||||||
chown -R 5000:5000 /var/mail
|
chown -R 5000:5000 /var/mail
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue