+ create wp config & restore perms example helpers scripts
+ gitignore with .idea
This commit is contained in:
10
wp/restore-perms.sh.example
Normal file
10
wp/restore-perms.sh.example
Normal file
@ -0,0 +1,10 @@
|
||||
#!/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
|
Reference in New Issue
Block a user