Skip to content

Commit

Permalink
Removed the explicit list of directory in folder conf/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeXtrasJay committed May 24, 2018
1 parent 0ebf9ca commit b2ea0cf
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions src/libexec/zmfixperms
Original file line number Diff line number Diff line change
Expand Up @@ -293,34 +293,11 @@ if [ -d /opt/zimbra ]; then
chmod 640 /opt/zimbra/conf/sasl2/smtpd.conf
chown ${zimbra_user}:${zimbra_group} /opt/zimbra/conf/sasl2/smtpd.conf
fi

if [ -d /opt/zimbra/conf/templates/ ]; then
chmod 755 /opt/zimbra/conf/templates
chown ${zimbra_user}:${zimbra_group} /opt/zimbra/conf/templates

chmod 755 \
/opt/zimbra/conf/templates /opt/zimbra/conf/templates/abook /opt/zimbra/conf/templates/briefcase \
/opt/zimbra/conf/templates/calendar /opt/zimbra/conf/templates/data /opt/zimbra/conf/templates/dwt \
/opt/zimbra/conf/templates/mail /opt/zimbra/conf/templates/prefs /opt/zimbra/conf/templates/share \
/opt/zimbra/conf/templates/tasks /opt/zimbra/conf/templates/voicemail /opt/zimbra/conf/templates/zimbra

chown ${zimbra_user}:${zimbra_group} \
/opt/zimbra/conf/templates /opt/zimbra/conf/templates/abook /opt/zimbra/conf/templates/briefcase \
/opt/zimbra/conf/templates/calendar /opt/zimbra/conf/templates/data /opt/zimbra/conf/templates/dwt \
/opt/zimbra/conf/templates/mail /opt/zimbra/conf/templates/prefs /opt/zimbra/conf/templates/share \
/opt/zimbra/conf/templates/tasks /opt/zimbra/conf/templates/voicemail /opt/zimbra/conf/templates/zimbra

chmod 644 \
/opt/zimbra/conf/templates/abook/* /opt/zimbra/conf/templates/admin/* /opt/zimbra/conf/templates/briefcase/* \
/opt/zimbra/conf/templates/calendar/* /opt/zimbra/conf/templates/data/* /opt/zimbra/conf/templates/dwt/* \
/opt/zimbra/conf/templates/mail/* /opt/zimbra/conf/templates/prefs/* /opt/zimbra/conf/templates/share/* \
/opt/zimbra/conf/templates/tasks/* /opt/zimbra/conf/templates/voicemail/* /opt/zimbra/conf/templates/zimbra/*

chown ${zimbra_user}:${zimbra_group} \
/opt/zimbra/conf/templates/abook/* /opt/zimbra/conf/templates/admin/* /opt/zimbra/conf/templates/briefcase/* \
/opt/zimbra/conf/templates/calendar/* /opt/zimbra/conf/templates/data/* /opt/zimbra/conf/templates/dwt/* \
/opt/zimbra/conf/templates/mail/* /opt/zimbra/conf/templates/prefs/* /opt/zimbra/conf/templates/share/* \
/opt/zimbra/conf/templates/tasks/* /opt/zimbra/conf/templates/voicemail/* /opt/zimbra/conf/templates/zimbra/*
chown -R ${zimbra_user}:${zimbra_group} /opt/zimbra/conf/templates
find /opt/zimbra/conf/templates/ -type d -exec chmod 755 {} \;
find /opt/zimbra/conf/templates/ -type f -exec chmod 644 {} \;
fi
fi

Expand Down

0 comments on commit b2ea0cf

Please sign in to comment.