Created
December 28, 2015 22:04
-
-
Save micjamking/004e4bcc5f940d548385 to your computer and use it in GitHub Desktop.
Set WordPress permissions for localhost installations
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 | |
# Set WordPress permissions for localhost installations | |
# @param {string} $1 - directory to apply permission settings | |
# @example - $ wp_permissions wordpress/ | |
function wp_permissions() { | |
sudo chown -R :_www "$1" && sudo chmod -R g+w "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment