Commit f170a2fb authored by Tim Bishop's avatar Tim Bishop

Create user as a system account.

This is an account for a service rather than a human being and should
therefore be created as a system user. This puts it in the system UID
and GID range.
parent fa9de637
......@@ -13,7 +13,7 @@ done
# create user if doesn't exist: it will create gitlab-runner if not found
if ! id -u "$USER" >/dev/null 2>/dev/null; then
echo "GitLab Runner: creating $USER..."
useradd --shell /bin/bash --comment 'GitLab Runner' --create-home $USER
useradd --system --shell /bin/bash --comment 'GitLab Runner' --create-home $USER
# add user to docker group to allow Docker access (insecure)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment