Skip to content

Commit

Permalink
Merge pull request #330 from Automattic/fix-local-permissions
Browse files Browse the repository at this point in the history
fix(base): ownership/permissions of `~/.local`
  • Loading branch information
sjinks authored Aug 13, 2024
2 parents 0e2665c + a6a0e02 commit c603867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/src/base/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"id": "base",
"name": "VIP Codespaces Base",
"version": "1.2.2",
"version": "1.2.3",
"description": "Base feature for VIP Codespaces",
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/base",
"containerEnv": {
"PAGER": "/usr/bin/less -R",
"LD_PRELOAD": "/usr/lib/libeatmydata/libeatmydata.so"
Expand Down
1 change: 1 addition & 0 deletions features/src/base/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fi

HOME_DIR="$(getent passwd "${_REMOTE_USER}" | cut -d: -f6)"

install -d -D -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local"
install -d -D -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local/share/vip-codespaces"
install -d -D -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local/share/vip-codespaces/login"

Expand Down

0 comments on commit c603867

Please sign in to comment.