[Qa-jenkins-scm] [jenkins.debian.net] 01/01: mattia wants zsh, mattia gets zsh

Holger Levsen holger at moszumanska.debian.org
Fri Oct 9 11:01:58 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 a90b816e6f455b19b9053f787af26dbcaa4779bd
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Oct 9 13:01:08 2015 +0200

    mattia wants zsh, mattia gets zsh
---
 update_jdn.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 5eac44a..4815392 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -31,7 +31,12 @@ if ! getent passwd jenkins-adm > /dev/null  ; then
 fi
 for user in helmut holger mattia ; do
 	if ! getent passwd $user > /dev/null ; then
-		sudo adduser --gecos "" --disabled-password $user
+		if [ "$user" = "mattia" ] ; then
+			local shell=/bin/zsh
+		else
+			local shell=/bin/bash
+		fi
+		sudo adduser --gecos "" --shell "$shell" --disabled-password $user
 		if [ "$user" = "holger" ] ; then
 			sudo usermod -G jenkins,jenkins-adm,sudo,adm $user
 		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