From 00861fe11e59e31448bdcf47a6ed3a9d4a2175a7 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 13 Aug 2024 07:08:00 +0300 Subject: [PATCH] fix(base): ownership/permissions of `~/.local/share` --- features/src/base/devcontainer-feature.json | 2 +- features/src/base/install.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/features/src/base/devcontainer-feature.json b/features/src/base/devcontainer-feature.json index d5015fe8..54096a65 100644 --- a/features/src/base/devcontainer-feature.json +++ b/features/src/base/devcontainer-feature.json @@ -1,7 +1,7 @@ { "id": "base", "name": "VIP Codespaces Base", - "version": "1.2.3", + "version": "1.2.4", "description": "Base feature for VIP Codespaces", "documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/base", "containerEnv": { diff --git a/features/src/base/install.sh b/features/src/base/install.sh index 4fe4ae70..49b19e83 100755 --- a/features/src/base/install.sh +++ b/features/src/base/install.sh @@ -14,9 +14,10 @@ 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" +install -d -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local" +install -d -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local/share" +install -d -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local/share/vip-codespaces" +install -d -m 0755 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" "${HOME_DIR}/.local/share/vip-codespaces/login" install -m 0644 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" .bashrc "${HOME_DIR}/.bashrc" install -m 0644 -o "${_REMOTE_USER}" -g "${_REMOTE_USER}" 001-welcome.sh "${HOME_DIR}/.local/share/vip-codespaces/login/001-welcome.sh"