summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-09 17:17:04 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-09 17:15:17 +0200
commit9b0f93f97d5be903ec11b03491f2ff40ba3330eb (patch)
treef8078966676da3b578a354411baed688b95ffc5e
parent9ccd3bc1202498c6c940409aa65124b68ecda735 (diff)
downloadjenkins.debian.net-9b0f93f97d5be903ec11b03491f2ff40ba3330eb.tar.xz
update_jdn: fixup typo in last commit + be less noisy
-rwxr-xr-xupdate_jdn.sh8
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