Skip to content

Commit

Permalink
Fix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Nov 20, 2023
1 parent f1c796c commit 36e7674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/platforms/ubuntu/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash

# Get host user/group info so we create files with the correct ownership
USERNAME=stat -c '%U' "$GITHUB_WORKSPACE/$PROJECT_PATH"
USERID=stat -c '%u' "$GITHUB_WORKSPACE/$PROJECT_PATH"
GROUPNAME=stat -c '%G' "$GITHUB_WORKSPACE/$PROJECT_PATH"
GROUPID=stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH"
USERNAME=$(stat -c '%U' "$GITHUB_WORKSPACE/$PROJECT_PATH")
USERID=$(stat -c '%u' "$GITHUB_WORKSPACE/$PROJECT_PATH")
GROUPNAME=$(stat -c '%G' "$GITHUB_WORKSPACE/$PROJECT_PATH")
GROUPID=$(stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH")

useradd -u $USERID -g $GROUPID $USERNAME
usermod -aG $GROUPNAME $USERNAME
Expand Down

0 comments on commit 36e7674

Please sign in to comment.