Created
February 20, 2013 13:54
-
-
Save jnpkr/4995680 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# | |
# Run within WordPress directory | |
# - Changes file permissions but not ownership | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
chmod 660 ./wp-config.php | |
find ./wp-content -type d -exec chmod 775 {} \; | |
find ./wp-content -type f -exec chmod 664 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment