mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Set permissions for builder on entry (#1002)
Make sure the builder can write the ccache directory. This is useful e.g. when using a Docker volume or a newly created directory.
This commit is contained in:
parent
39debca9fc
commit
8d448a130c
@ -11,6 +11,8 @@ if [ "${BUILDER_UID:-0}" -ne 0 ] && [ "${BUILDER_GID:-0}" -ne 0 ]; then
|
||||
groupadd -g "${BUILDER_GID}" builder
|
||||
useradd -m -u "${BUILDER_UID}" -g "${BUILDER_GID}" -G docker,sudo builder
|
||||
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
# Make sure cache is accessible by builder
|
||||
chown "${BUILDER_UID}:${BUILDER_GID}" /cache
|
||||
USER="builder"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user