diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-09 17:17:04 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-09 17:15:17 +0200 |
commit | 9b0f93f97d5be903ec11b03491f2ff40ba3330eb (patch) | |
tree | f8078966676da3b578a354411baed688b95ffc5e | |
parent | 9ccd3bc1202498c6c940409aa65124b68ecda735 (diff) | |
download | jenkins.debian.net-9b0f93f97d5be903ec11b03491f2ff40ba3330eb.tar.xz |
update_jdn: fixup typo in last commit + be less noisy
-rwxr-xr-x | update_jdn.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |