[Qa-jenkins-scm] [jenkins.debian.net] 01/02: give a home to jenkins-adm
Holger Levsen
holger at layer-acht.org
Tue Aug 2 17:02:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit ed68212ea3f8e176290c742dadf3b5db52656df5
Author: Mattia Rizzolo <mattia at debian.org>
Date: Tue Aug 2 16:58:36 2016 +0000
give a home to jenkins-adm
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index d2cd94c..b1d4a24 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list