Commit 3822e58d authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Merge branch 'systemusers' into 'master'

Fix useradd to create system users

The gitlab_ci_multi_runner should be a system user (low UID).

See merge request !5
parents 24006813 8184bb58
......@@ -9,7 +9,7 @@ case "$1" in
configure)
if ! id -u "$USER" >/dev/null 2>/dev/null; then
useradd --comment 'GitLab Runner' --create-home $USER
useradd -r --comment 'GitLab Runner' --create-home $USER
fi
usermod -aG docker $USER || true
eval HOMEDIR=~$USER
......
......@@ -4,7 +4,7 @@ set -e
USER=gitlab_ci_multi_runner
if ! id -u "$USER" >/dev/null 2>/dev/null; then
useradd --comment 'GitLab Runner' --create-home $USER
useradd -r --comment 'GitLab Runner' --create-home $USER
fi
usermod -aG docker $USER || true
eval HOMEDIR=~$USER
......
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