Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
a90b816e
Commit
a90b816e
authored
Oct 09, 2015
by
Holger Levsen
Browse files
mattia wants zsh, mattia gets zsh
parent
ad4e193c
Changes
1
Hide whitespace changes
Inline
Side-by-side
update_jdn.sh
View file @
a90b816e
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment