From 59a4a7e00d77c3f2d8dc97721f7ab9eabb4bd634 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Fri, 31 May 2024 08:13:46 +0300 Subject: [PATCH] fix(wordpress): reset permissions of `/wp/wp-content` in the installer --- features/src/wordpress/devcontainer-feature.json | 2 +- features/src/wordpress/setup-wordpress.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/features/src/wordpress/devcontainer-feature.json b/features/src/wordpress/devcontainer-feature.json index 67d938e8..9a735a12 100644 --- a/features/src/wordpress/devcontainer-feature.json +++ b/features/src/wordpress/devcontainer-feature.json @@ -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" }, diff --git a/features/src/wordpress/setup-wordpress.sh b/features/src/wordpress/setup-wordpress.sh index 46462222..9bac18c1 100755 --- a/features/src/wordpress/setup-wordpress.sh +++ b/features/src/wordpress/setup-wordpress.sh @@ -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