You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
180 B

#!/bin/bash
DIRS=( wp-content/plugins )
export WEB_GID=33
perms() {
sudo chown -R $UID:$WEB_GID "$1"
sudo chmod -R g+rwx "$1"
}
for DIR in "${DIRS[@]}"; do
perms "$DIR"
done