[Qa-jenkins-scm] [jenkins.debian.net] 01/01: tea with sudo, my old friend.. (fixup 13f6d47)

Holger Levsen holger at moszumanska.debian.org
Mon Aug 10 12:24:44 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 936c820c088a2f9a3f0fd77f740c8b0e5302924e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Aug 10 14:23:25 2015 +0200

    tea with sudo, my old friend.. (fixup 13f6d47)
---
 update_jdn.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 5ba411e..7176df6 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -56,13 +56,13 @@ esac
 case $HOSTNAME in
 	jenkins|profitbricks-build?-amd64)
 		if ! grep -q '^tmpfs\s\+/srv/workspace\s' /etc/fstab; then
-			echo "tmpfs		/srv/workspace	tmpfs	defaults,size=${TMPFSSIZE}g	0	0" >> /etc/fstab
+			echo "tmpfs		/srv/workspace	tmpfs	defaults,size=${TMPFSSIZE}g	0	0" | sudo tee -a /etc/fstab >/dev/null  
 		fi
 		if ! mountpoint -q /srv/workspace; then
 			if test -z "$(ls -A /srv/workspace)"; then
-				mount /srv/workspace
+				sudo mount /srv/workspace
 			else
-				explain "mountpoint /srv/workspace is non-empty."
+				explain "WARNING: mountpoint /srv/workspace is non-empty."
 			fi
 		fi
 		;;

-- 
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