mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
improve finder for botched permissions
This commit is contained in:
parent
288e79f59e
commit
1ff72b2faf
|
@ -247,7 +247,7 @@ else
|
|||
fi
|
||||
|
||||
# Fix permissions, but skip this if 3 levels deep the user id is already set
|
||||
if [ `find /var/mail -maxdepth 3 \! -user 5000 | grep -c .` != 0 ]; then
|
||||
if [ `find /var/mail -maxdepth 3 -a \( \! -user 5000 -o \! -group 5000 \) | grep -c .` != 0 ]; then
|
||||
echo "Fixing /var/mail permissions"
|
||||
chown -R 5000:5000 /var/mail
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue