We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5beb9d7 commit 54c10f3Copy full SHA for 54c10f3
template/gitlab-runner.tpl
@@ -34,8 +34,11 @@ then
34
yum install amazon-ecr-credential-helper -y
35
fi
36
37
-curl --fail --retry 6 -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
38
-yum install gitlab-runner-${gitlab_runner_version} -y
+if ! ( rpm -q gitlab-runner >/dev/null )
+then
39
+ curl --fail --retry 6 -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
40
+ yum install gitlab-runner-${gitlab_runner_version} -y
41
+fi
42
43
if [[ `echo ${docker_machine_download_url}` == "" ]]
44
then
0 commit comments