Skip to content

Commit

Permalink
Ensure group is created
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Nov 20, 2023
1 parent 36e7674 commit ce33464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/platforms/ubuntu/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ USERID=$(stat -c '%u' "$GITHUB_WORKSPACE/$PROJECT_PATH")
GROUPNAME=$(stat -c '%G' "$GITHUB_WORKSPACE/$PROJECT_PATH")
GROUPID=$(stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH")

groupadd -g $GROUPID $GROUPNAME
useradd -u $USERID -g $GROUPID $USERNAME
usermod -aG $GROUPNAME $USERNAME
mkdir -p "/home/$USERNAME"
Expand Down

0 comments on commit ce33464

Please sign in to comment.