[Qa-jenkins-scm] [jenkins.debian.net] 01/01: update_jdn: fixup typo in last commit + be less noisy

Holger Levsen holger at moszumanska.debian.org
Thu Apr 9 15:18:27 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 9b0f93f97d5be903ec11b03491f2ff40ba3330eb
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Thu Apr 9 17:17:04 2015 +0200

    update_jdn: fixup typo in last commit + be less noisy
---
 update_jdn.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 19d3ad1..408030a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -16,15 +16,15 @@ explain() {
 #
 # set up users and groups
 #
-if ! getent group jenkins-adm ; then
+if ! getent group jenkins-adm > /dev/nnull ; then
 	sudo addgroup --system jenkins-adm
 fi
-if ! getent passwd jenkins-adm ; then
-	sudo adduser --system --no-create-home --ingroup jenkins-adm --disable-login --no-create-home jenkins-adm
+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
 fi
 for user in helmut holger mattia ; do
-	if ! getent passwd $user ; then
+	if ! getent passwd $user > /dev/null ; then
 		sudo adduser --gecos "" $user
 		sudo usermod -G jenkins,jenkins-adm
 	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