[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fixup usermod usage

Holger Levsen holger at moszumanska.debian.org
Thu Jul 30 13:05:46 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 14337d2e76b5f0b36bb77c5d43142668c098d171
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Jul 30 15:04:50 2015 +0200

    fixup usermod usage
---
 update_jdn.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index c3a2ecb..42d8170 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -27,12 +27,12 @@ if ! getent group jenkins-adm > /dev/null ; then
 fi
 if ! getent passwd jenkins-adm > /dev/null  ; then
 	sudo adduser --system --no-create-home --ingroup jenkins-adm --disabled-login --no-create-home jenkins-adm
-	sudo usermod -G jenkins
+	sudo usermod -G jenkins jenkins-adm
 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
+		sudo usermod -G jenkins,jenkins-adm $USER
 	fi
 done
 

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