Skip to content

Commit b31e8d1

Browse files
authored
Update ss-perms-wordpress-packages.txt
1 parent 001daab commit b31e8d1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

bash/ss-perms-wordpress-packages.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ chmod 0755 "/var/www/html/wp-includes"
114114
####################################################################################################
115115

116116
if [[ "${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"
@@ -159,7 +163,11 @@ fi
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"

0 commit comments

Comments
 (0)