This is an automated email from the ASF dual-hosted git repository.

rlenferink pushed a commit to branch bugfix/fix-run-devcontainer-permissions
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 156a1ca74194732c8007cb8d382813e45252922d
Author: Roy Lenferink <[email protected]>
AuthorDate: Sun Jan 12 12:07:18 2025 +0000

    Update run-dev-container script to change owner of files to 'celixdev' user
    
    Files on the host are no longer owned by the host user, but this can be 
changed back by using e.g. 'podman unshare chown XYZ'
---
 .devcontainer/run-devcontainer.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.devcontainer/run-devcontainer.sh 
b/.devcontainer/run-devcontainer.sh
index 9c36d9a3e..78e7a0a89 100755
--- a/.devcontainer/run-devcontainer.sh
+++ b/.devcontainer/run-devcontainer.sh
@@ -25,7 +25,7 @@ CELIX_REPO_ROOT=$(realpath "${SCRIPT_LOCATION}/..")
 CELIX_CONTAINER_ROOT="/home/celixdev/workspace"
 
 CONTAINER_SSH_PORT=2233
-CONTAINER_COMMAND_DEFAULT="sudo /usr/sbin/sshd -D -e -p ${CONTAINER_SSH_PORT}"
+CONTAINER_COMMAND_DEFAULT="sudo chown -R celixdev:celixdev 
${CELIX_CONTAINER_ROOT} && sudo /usr/sbin/sshd -D -e -p ${CONTAINER_SSH_PORT}"
 CONTAINER_COMMAND=${1:-${CONTAINER_COMMAND_DEFAULT}}
 CONTAINER_NAME="celixdev"
 

Reply via email to