Skip to content

Commit

Permalink
Merge pull request #205 from Automattic/fix-wp-permissions
Browse files Browse the repository at this point in the history
fix(wordpress): reset permissions of `/wp/wp-content` in the installer
  • Loading branch information
sjinks authored May 31, 2024
2 parents e0a6972 + 59a4a7e commit 5f7104e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/src/wordpress/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "wordpress",
"name": "WordPress",
"description": "Sets up WordPress into the Dev Environment",
"version": "2.3.3",
"version": "2.3.4",
"containerEnv": {
"WP_CLI_CONFIG_PATH": "/etc/wp-cli/wp-cli.yaml"
},
Expand Down
1 change: 1 addition & 0 deletions features/src/wordpress/setup-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ done

if [ -n "${WP_PERSIST_UPLOADS}" ]; then
sudo install -d -o "${MY_UID}" -g "${MY_GID}" -m 0755 /workspaces/uploads
sudo install -d -o "${MY_UID}" -g "${MY_GID}" -m 0755 /wp/wp-content
ln -sf /workspaces/uploads /wp/wp-content/uploads
else
sudo install -d -o "${MY_UID}" -g "${MY_GID}" -m 0755 /wp/wp-content/uploads
Expand Down

0 comments on commit 5f7104e

Please sign in to comment.