From 9b0f93f97d5be903ec11b03491f2ff40ba3330eb Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 9 Apr 2015 17:17:04 +0200 Subject: update_jdn: fixup typo in last commit + be less noisy --- update_jdn.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'update_jdn.sh') diff --git a/update_jdn.sh b/update_jdn.sh index 19d3ad17..408030ab 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 -- cgit v1.2.3-70-g09d2