From 2415c9f953ff5d85ec4fa8d5912ec3917b89ef7d Mon Sep 17 00:00:00 2001 From: Darren Jones Date: Tue, 15 May 2018 10:17:15 +0100 Subject: [PATCH] Update pre-start.erb --- jobs/jenkins-master/templates/bin/pre-start.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jobs/jenkins-master/templates/bin/pre-start.erb b/jobs/jenkins-master/templates/bin/pre-start.erb index 7597a9e..1837c79 100644 --- a/jobs/jenkins-master/templates/bin/pre-start.erb +++ b/jobs/jenkins-master/templates/bin/pre-start.erb @@ -22,7 +22,9 @@ if [[ $(ls /var/vcap/jobs/jenkins-master/init.groovy.d/*.groovy) ]]; then fi if [ ${JENKINS_USE_GITHUB_AUTH} == "true" ]; then - rm /var/vcap/store/jenkins-master/init.d/configure-access.groovy + if [ -f /var/vcap/store/jenkins-master/init.d/configure-access.groovy ]; then + rm /var/vcap/store/jenkins-master/init.d/configure-access.groovy + fi cp /var/vcap/jobs/jenkins-master/init.groovy.d/configure-github-access.groovy /var/vcap/store/jenkins-master/init.groovy.d/configure-github-access.groovy fi