summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-30 14:39:53 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-30 14:39:53 +0200
commit2e1273cf137da8e0f49ce7823c822ea59884c49c (patch)
tree409ba754ecba53a09272a10799931e36c531e272
parent536130abc60d579e48b14cdac64375828280e7e8 (diff)
downloadjenkins.debian.net-2e1273cf137da8e0f49ce7823c822ea59884c49c.tar.xz
more sudo and create a missing directory
-rwxr-xr-xupdate_jdn.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index c6616ed4..ff8df41b 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