Allow anyone to write to stdout/stderr
parent
e8697988d7
commit
b9a7b93884
|
@ -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