[Qa-jenkins-scm] [jenkins.debian.net] 01/04: deploy the right configs to the right hosts. make sure holger keeps sudo. install pigz needed for default pbuilder config

Holger Levsen holger at moszumanska.debian.org
Sat Aug 1 08:27:38 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 27d6da4d7114dbc2c0d0c8a193225826d4f4e122
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Aug 1 10:23:30 2015 +0200

    deploy the right configs to the right hosts. make sure holger keeps sudo. install pigz needed for default pbuilder config
---
 update_jdn.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 70e30a8..d1da630 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -32,7 +32,11 @@ fi
 for user in helmut holger mattia ; do
 	if ! getent passwd $user > /dev/null ; then
 		sudo adduser --gecos "" --disabled-password $user
-		sudo usermod -G jenkins,jenkins-adm $USER
+		if [ "$user" = "holger" ; then
+			sudo usermod -G jenkins,jenkins-adm,sudo,adm $user
+		else
+			sudo usermod -G jenkins,jenkins-adm $user
+		fi
 	fi
 done
 
@@ -99,6 +103,7 @@ if [ -f /etc/debian_version ] ; then
 			git
 			munin-node
 			munin-plugins-extra 
+			pigz 
 			schroot 
 			screen 
 			subversion 
@@ -160,7 +165,6 @@ if [ -f /etc/debian_version ] ; then
 				openbios-sparc 
 				openjdk-7-jre 
 				ovmf 
-				pigz 
 				postgresql-client-9.4 
 				poxml 
 				procmail 
@@ -220,7 +224,7 @@ fi
 # deploy package configuration in /etc
 #
 cd $BASEDIR
-sudo cp --preserve=mode,timestamps -r hosts/jenkins/etc/* /etc
+sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/etc/* /etc
 
 #
 # more configuration than a simple cp can do

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