Fix variables
parent
f1c796c83f
commit
36e767467c
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Get host user/group info so we create files with the correct ownership
|
# Get host user/group info so we create files with the correct ownership
|
||||||
USERNAME=stat -c '%U' "$GITHUB_WORKSPACE/$PROJECT_PATH"
|
USERNAME=$(stat -c '%U' "$GITHUB_WORKSPACE/$PROJECT_PATH")
|
||||||
USERID=stat -c '%u' "$GITHUB_WORKSPACE/$PROJECT_PATH"
|
USERID=$(stat -c '%u' "$GITHUB_WORKSPACE/$PROJECT_PATH")
|
||||||
GROUPNAME=stat -c '%G' "$GITHUB_WORKSPACE/$PROJECT_PATH"
|
GROUPNAME=$(stat -c '%G' "$GITHUB_WORKSPACE/$PROJECT_PATH")
|
||||||
GROUPID=stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH"
|
GROUPID=$(stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH")
|
||||||
|
|
||||||
useradd -u $USERID -g $GROUPID $USERNAME
|
useradd -u $USERID -g $GROUPID $USERNAME
|
||||||
usermod -aG $GROUPNAME $USERNAME
|
usermod -aG $GROUPNAME $USERNAME
|
||||||
|
|
Loading…
Reference in New Issue