mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
v-lock-wordpress - set correct chmod just in case
This commit is contained in:
parent
cdbcf84b2c
commit
a39b192d30
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ cd /home/$user/web/$domain
|
||||||
# lock files
|
# lock files
|
||||||
chown -R www-data:www-data public_html/
|
chown -R www-data:www-data public_html/
|
||||||
|
|
||||||
|
# set correct chmod just in case
|
||||||
|
find public_html/ -type d -exec chmod 755 {} +
|
||||||
|
find public_html/ -type f -exec chmod 644 {} +
|
||||||
|
|
||||||
# unlock /wp-content/uploads/ for uploading
|
# unlock /wp-content/uploads/ for uploading
|
||||||
if [ -d "/home/$user/web/$domain/public_html/wp-content/uploads" ]; then
|
if [ -d "/home/$user/web/$domain/public_html/wp-content/uploads" ]; then
|
||||||
unlock_folder "public_html/wp-content/uploads"
|
unlock_folder "public_html/wp-content/uploads"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue