Skip to content

Commit 2a7db28

Browse files
committed
Merge pull request #128 from hindsightsoftware/user-exists-error
Checking if a user already exists during postinstall is missing the user name to check for
2 parents a296a39 + 6c724d9 commit 2a7db28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adding ${{user}}
2-
if ! id -u $1 >/dev/null 2>&1; then
2+
if ! id -u ${{user}} > /dev/null 2>&1; then
33
echo "Creating user ${{user}} in group ${{group}}"
44
useradd --system --no-create-home --gid ${{group}} --shell /bin/false ${{user}}
55
fi

0 commit comments

Comments
 (0)