11 lines
218 B
Bash
Executable file
11 lines
218 B
Bash
Executable file
#!/bin/sh
|
|
|
|
DIR=/var/www
|
|
USER=www-data
|
|
GROUP=$USER
|
|
|
|
sudo chown -R $USER:$GROUP $DIR
|
|
sudo find $DIR -type f -exec chmod 664 {} \;
|
|
sudo find $DIR -type d -exec chmod 775 {} \;
|
|
sudo find $DIR -type d -exec chmod g+s {} \;
|