Commit 5a898858 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Use gitlab-runner instead of gitlab_runner

parent 797ae2e5
......@@ -3,14 +3,14 @@
set -e
# detect user: first try to use gitlab_ci_multi_runner
for USER in gitlab_ci_multi_runner gitlab_runner; do
for USER in gitlab_ci_multi_runner gitlab-runner; do
if id -u "$USER" >/dev/null 2>/dev/null; then
echo "GitLab Runner: detected user $USER"
break
fi
done
# create user if doesn't exist: it will create gitlab_runner if not found
# 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
......
......@@ -54,7 +54,7 @@ esac
if [[ -n "$UPGRADE" ]]; then
USER="gitlab_ci_multi_runner"
else
USER="gitlab_runner"
USER="gitlab-runner"
fi
cat $(dirname $0)/test_script.sh | docker exec -i $ID bash -s "$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