From a90b816e6f455b19b9053f787af26dbcaa4779bd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 9 Oct 2015 13:01:08 +0200 Subject: mattia wants zsh, mattia gets zsh --- update_jdn.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update_jdn.sh b/update_jdn.sh index 5eac44a7..4815392d 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -31,7 +31,12 @@ if ! getent passwd jenkins-adm > /dev/null ; then fi for user in helmut holger mattia ; do if ! getent passwd $user > /dev/null ; then - sudo adduser --gecos "" --disabled-password $user + if [ "$user" = "mattia" ] ; then + local shell=/bin/zsh + else + local shell=/bin/bash + fi + sudo adduser --gecos "" --shell "$shell" --disabled-password $user if [ "$user" = "holger" ] ; then sudo usermod -G jenkins,jenkins-adm,sudo,adm $user else -- cgit v1.2.3-70-g09d2