mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-01-22 14:15:44 +01:00
Fix $HOME directory ownership permissions
BUG: Creating a new directory under /home/<user>/ from the /work folder does not work. In fact, going into the home directory and trying to run mkdir fails as well. SOLUTION: Turns out chown -R <user>:<user> was run on $HOME/* instead of on $HOME. This means that /home/<user> was still under the ownership of root:root, hence preventing any writes to non-root users.
This commit is contained in:
parent
2b28515daf
commit
b1cef063a1
@ -27,7 +27,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
|
||||
export HOME=/home/${BUILDER_USER}
|
||||
shopt -s dotglob
|
||||
cp -r /root/* $HOME/
|
||||
chown -R $BUILDER_UID:$BUILDER_GID $HOME/*
|
||||
chown -R $BUILDER_UID:$BUILDER_GID $HOME
|
||||
|
||||
# Additional updates specific to the image
|
||||
if [[ -e /dockcross/pre_exec.sh ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user