From 6fa914ffde761da1b16cd988ab1abd8947ef011c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 23 Apr 2015 13:36:37 +0200 Subject: 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 6f12d867..f2961d50 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 -- cgit v1.2.3-70-g09d2