Add 'fix.sh'

This commit is contained in:
Sarimoko 2021-07-05 21:51:17 +00:00
parent 9c08e5fe3e
commit 58551d8b63
1 changed files with 15 additions and 0 deletions

15
fix.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
echo "# ===================================================================== #"
echo "# U N I X / W o r d P r e s s"
echo "# ===================================================================== #"
echo "# Fixing permissions..."
echo "# --------------------------------------------------------------------- #"
sudo chown -R www-data:www-data /var/www/shop/html
sudo find /var/www/shop/html// -type d -exec chmod 750 {} \;
sudo find /var/www/shop/html/ -type f -exec chmod 640 {} \;
echo "# --------------------------------------------------------------------- #"
echo "# Fixing permissions..."
echo "# --------------------------------------------------------------------- #"
sudo service apache2 reload