Skip to content

Commit

Permalink
Fixed missing user name when checking if a user already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
aparkinson committed Jan 11, 2014
1 parent a296a39 commit 6c724d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adding ${{user}}
if ! id -u $1 >/dev/null 2>&1; then
if ! id -u ${{user}} > /dev/null 2>&1; then
echo "Creating user ${{user}} in group ${{group}}"
useradd --system --no-create-home --gid ${{group}} --shell /bin/false ${{user}}
fi

0 comments on commit 6c724d9

Please sign in to comment.