mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Allow anyone to write to stdout/stderr
This commit is contained in:
parent
e8697988d7
commit
b9a7b93884
4
dist/platforms/ubuntu/entrypoint.sh
vendored
4
dist/platforms/ubuntu/entrypoint.sh
vendored
@ -9,10 +9,12 @@ GROUPID=$(stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH")
|
|||||||
groupadd -g $GROUPID $GROUPNAME
|
groupadd -g $GROUPID $GROUPNAME
|
||||||
useradd -u $USERID -g $GROUPID $USERNAME
|
useradd -u $USERID -g $GROUPID $USERNAME
|
||||||
usermod -aG $GROUPNAME $USERNAME
|
usermod -aG $GROUPNAME $USERNAME
|
||||||
usermod -aG tty $USERNAME
|
|
||||||
mkdir -p "/home/$USERNAME"
|
mkdir -p "/home/$USERNAME"
|
||||||
chown $USERNAME:$GROUPNAME "/home/$USERNAME"
|
chown $USERNAME:$GROUPNAME "/home/$USERNAME"
|
||||||
|
|
||||||
|
chmod 777 /dev/stdout
|
||||||
|
chmod 777 /dev/stderr
|
||||||
|
|
||||||
# Switch to the host user so we can create files with the correct ownership
|
# Switch to the host user so we can create files with the correct ownership
|
||||||
su $USERNAME -c "$SHELL -c 'source /steps/runsteps.sh'"
|
su $USERNAME -c "$SHELL -c 'source /steps/runsteps.sh'"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user