[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fix 'directory already exists' cosmetic problem
Holger Levsen
holger at moszumanska.debian.org
Thu Apr 23 11:36:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 6fa914ffde761da1b16cd988ab1abd8947ef011c
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Apr 23 13:36:37 2015 +0200
fix 'directory already exists' cosmetic problem
---
update_jdn.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index 6f12d86..f2961d5 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -51,8 +51,12 @@ for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build ;
sudo chown jenkins.jenkins $directory
fi
done
-sudo mkdir /srv/jenkins
-sudo chown jenkins-adm.jenkins-adm /srv/jenkins
+for directory /srv/jenkins ; do
+ if [ ! -d $directory ] ; then
+ sudo mkdir $directory
+ sudo chown jenkins-adm.jenkins-adm $directory
+ fi
+done
if ! test -h /chroots; then
rmdir /chroots || rm -f /chroots # do not recurse
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list