File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ chmod 0755 "/var/www/html/wp-includes"
114114# ###################################################################################################
115115
116116if [[ " ${STAGING_SITE} " != " false" ]]; then
117+ # # normalize staging wp-content ownership for auto-updates ##
118+ ss_chown www-data:www-data " /var/www/html/staging/wp-content" # # must be www-data:www-data
119+ chmod 0775 " /var/www/html/staging/wp-content" # # must be 0775
120+
117121 # # ensure required staging wp-content directories exist (besides uploads because it is symlinked to production) ##
118122 ss_mkdir " /var/www/html/staging/wp-content/languages"
119123 ss_mkdir " /var/www/html/staging/wp-content/plugins"
159163# ### F. SS-Perms-WordPress-Packages: Reset Directory Permissions (Development) #####################
160164# ###################################################################################################
161165
162- if [[ " ${DEV_SITE} " != " false" ]]; then
166+ if [[ " ${DEV_SITE} " != " false" ]]; then
167+ # # normalize dev wp-content ownership for auto-updates ##
168+ ss_chown www-data:www-data " /var/www/html/dev/wp-content" # # must be www-data:www-data
169+ chmod 0775 " /var/www/html/dev/wp-content" # # must be 0775
170+
163171 # # ensure required dev wp-content directories exist ##
164172 ss_mkdir " /var/www/html/dev/wp-content/languages"
165173 ss_mkdir " /var/www/html/dev/wp-content/plugins"
You can’t perform that action at this time.
0 commit comments