From ce33464d3189e238f8315339b722cbbed6deacf0 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sun, 19 Nov 2023 23:14:05 -0800 Subject: [PATCH] Ensure group is created --- dist/platforms/ubuntu/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/platforms/ubuntu/entrypoint.sh b/dist/platforms/ubuntu/entrypoint.sh index b61191ab..9552e122 100755 --- a/dist/platforms/ubuntu/entrypoint.sh +++ b/dist/platforms/ubuntu/entrypoint.sh @@ -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"