Allow anyone to write to stdout/stderr

This commit is contained in:
Andrew Kahr 2023-11-20 01:03:25 -08:00
parent e8697988d7
commit b9a7b93884

View File

@ -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'"