Fixed path

This commit is contained in:
Thomas VIAL 2017-02-07 21:36:39 +01:00
parent 6328d63464
commit 2822468ab0
No known key found for this signature in database
GPG Key ID: 0394CEE552FAFEFC
1 changed files with 2 additions and 2 deletions

View File

@ -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
@ -917,7 +917,7 @@ function _fix_var_mail_permissions() {
function _fix_var_amavis_permissions() { function _fix_var_amavis_permissions() {
notify 'task' 'Fixing /var/lib/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" notify 'inf' "Fixing /var/lib/amavis permissions"
chown -R amavis:amavis /var/lib/amavis chown -R amavis:amavis /var/lib/amavis
else else