summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-08-02 16:58:36 +0000
committerHolger Levsen <holger@layer-acht.org>2016-08-02 19:02:25 +0200
commited68212ea3f8e176290c742dadf3b5db52656df5 (patch)
tree390f1dff68b00b248ccd452e708d1ec80ae999fd
parent1d27da49906b4e51e45619157303519d46ce1769 (diff)
downloadjenkins.debian.net-ed68212ea3f8e176290c742dadf3b5db52656df5.tar.xz
give a home to jenkins-adm
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xupdate_jdn.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index d2cd94cb..b1d4a246 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -51,9 +51,13 @@ if ! getent group jenkins-adm > /dev/null ; then
sudo addgroup --system jenkins-adm
fi
if ! getent passwd jenkins-adm > /dev/null ; then
- sudo adduser --system --shell /bin/bash --no-create-home --ingroup jenkins-adm --disabled-login --no-create-home jenkins-adm
+ sudo adduser --system --shell /bin/bash --hone /home/jenkins-adm --ingroup jenkins-adm --disabled-login jenkins-adm
sudo usermod -G jenkins jenkins-adm
fi
+if [ ! -d /home/jenkins-adm ];
+ sudo mkdir /home/jenkins-adm
+ sudo chown jenkins-adm.jenkins-adm /home/jenkins-adm
+fi
declare -A user_host_groups u_shell