summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-09 13:01:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-09 13:01:08 +0200
commita90b816e6f455b19b9053f787af26dbcaa4779bd (patch)
treea363953e5206f65ec6fceb1efcb3ad17bc6dd823
parentad4e193c0cc65e3d87fc37196a5d086b6730e9e5 (diff)
downloadjenkins.debian.net-a90b816e6f455b19b9053f787af26dbcaa4779bd.tar.xz
mattia wants zsh, mattia gets zsh
-rwxr-xr-xupdate_jdn.sh7
1 files changed, 6 insertions, 1 deletions
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