Add 'fix.sh'
This commit is contained in:
parent
9c08e5fe3e
commit
58551d8b63
|
@ -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
|
Loading…
Reference in New Issue