added a script for setting file/dir permissions on my webserver

This commit is contained in:
the8woodcutter 2022-01-08 07:57:27 -07:00
parent ffcf06394a
commit 8bb95beabe
3 changed files with 11 additions and 0 deletions

0
blog/.config Executable file → Normal file
View File

0
blog/bb.sh Executable file → Normal file
View File

11
set-permissions.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# Dear g1n, THIS IS FOR MY WEB DIRECTORY PERMISSIONS!
cd /var/www/html/GRU
sudo chown -R chunk:www-data *
sudo find /var/www/html/GRU -type f -exec chmod 664 {} \;
sudo find /var/www/html/GRU -type d -exec chmod 775 {} \;
sudo chmod +x set-permissions.sh
echo ""
echo "Success!"
echo ""