We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3210bac commit 50371d2Copy full SHA for 50371d2
docker/entrypoint.sh
@@ -12,6 +12,10 @@ fi
12
addgroup --quiet --gid ${cheribuild_gid} "${cheribuild_user}"
13
useradd --uid "${cheribuild_uid}" --gid "${cheribuild_gid}" --create-home --no-user-group --password '*' "${cheribuild_user}"
14
15
-# Run the actual command:
+# Copy the cheribuild configuration to the unprivileged user's home directory:
16
export HOME="/home/${cheribuild_user}"
17
+mkdir "${HOME}/.config"
18
+cp -f /root/.config/cheribuild.json "${HOME}/.config/cheribuild.json"
19
+chown -R "${cheribuild_uid}:${cheribuild_gid}" "${HOME}/.config"
20
+# Run the actual command:
21
exec gosu "${cheribuild_user}" "$@"
0 commit comments