From 14337d2e76b5f0b36bb77c5d43142668c098d171 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 30 Jul 2015 15:04:50 +0200 Subject: fixup usermod usage --- update_jdn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update_jdn.sh') diff --git a/update_jdn.sh b/update_jdn.sh index c3a2ecbb..42d81701 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 -- cgit v1.2.3-70-g09d2