Commit a90b816e authored by Holger Levsen's avatar Holger Levsen
Browse files

mattia wants zsh, mattia gets zsh

parent ad4e193c
...@@ -31,7 +31,12 @@ if ! getent passwd jenkins-adm > /dev/null ; then ...@@ -31,7 +31,12 @@ if ! getent passwd jenkins-adm > /dev/null ; then
fi fi
for user in helmut holger mattia ; do for user in helmut holger mattia ; do
if ! getent passwd $user > /dev/null ; then 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 if [ "$user" = "holger" ] ; then
sudo usermod -G jenkins,jenkins-adm,sudo,adm $user sudo usermod -G jenkins,jenkins-adm,sudo,adm $user
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment