Created
September 3, 2013 06:34
-
-
Save matglas/6420347 to your computer and use it in GitHub Desktop.
Reset Drupal code base file permissions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd `drush dd` | |
sudo chown [user]:[group] -R . | |
sudo find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | |
sudo find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | |
cd sites | |
for d in ./*/files | |
do | |
find $d -type d -exec chmod ug=rwx,o= '{}' \; | |
find $d -type f -exec chmod ug=rw,o= '{}' \; | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment