Skip to content

Commit

Permalink
fixed entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
FlakM committed Feb 7, 2018
1 parent cb6f24e commit 497537d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ if [ "$ADMIN_TOKEN" != "" ]; then
PROJECTS_STRING="$PROJECTS_TO_REGISTER"
fi

if [ "$CUSTOM_RUNNER_NAME" != "" ]; then
export RUNNER_NAME="$CUSTOM_RUNNER_NAME"
else
export RUNNER_NAME="$HOSTNAME"
fi
MY_NAME="${CUSTOM_RUNNER_NAME:-$HOSTNAME}"
export RUNNER_NAME="$MY_NAME"

# gitlab-ci-multi-runner data directory
DATA_DIR="/etc/gitlab-runner"
Expand Down

0 comments on commit 497537d

Please sign in to comment.