[Qa-jenkins-scm] [jenkins.debian.net] 01/01: more sudo and create a missing directory
Holger Levsen
holger at moszumanska.debian.org
Thu Jul 30 12:40:50 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 2e1273cf137da8e0f49ce7823c822ea59884c49c
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Jul 30 14:39:53 2015 +0200
more sudo and create a missing directory
---
update_jdn.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index c6616ed..ff8df41 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -53,7 +53,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
fi
# make sure needed directories exists - some directories will not be needed on all hosts...
-for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build ; do
+for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ ; do
if [ ! -d $directory ] ; then
sudo mkdir $directory
sudo chown jenkins.jenkins $directory
@@ -78,7 +78,7 @@ fi
# only on Debian systems
if [ -f /etc/debian_version ] ; then
if ! test -h /var/cache/pbuilder/build; then
- rmdir /var/cache/pbuilder/build || rm -f /var/cache/pbuilder/build
+ sudo rmdir /var/cache/pbuilder/build || sudo rm -f /var/cache/pbuilder/build
if test -e /var/cache/pbuilder/build; then
explain "could not clear /var/cache/pbuilder/build"
else
--
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