brentwpeterson/server-utilities — pull request #2 by kojiromike (2014-12-31 18:09:41+00:00)
Title: Refactor Production Permissions Script

Hopefully this is helpful. I polished the chmods and added the following features:

- Allow the user to supply the Magento base path on as a script parameter.
- Validate the supplied base path.
- Don't touch permissions inside .git at all.
- Clear `umask`\* to be sure the expected permissions are set.
- Make sure mage (mage-setup) and cron.sh are executable.
- I expect it will be a lot faster.
- Use `chmod -v` to output exactly what files were changed.