Commit 8184bb58 authored by Mark Plaksin's avatar Mark Plaksin

Fix useradd to create system users

parent 881262d1
......@@ -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