[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Debian: fix to make it work with more restricted sudo
Holger Levsen
holger at layer-acht.org
Fri Jun 2 10:49:40 UTC 2017
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 6ebcee5bee6e461075b73ca2c639b425208334e6
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Jun 2 12:47:58 2017 +0200
reproducible Debian: fix to make it work with more restricted sudo
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
init_node | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init_node b/init_node
index 7878195..2bb9132 100755
--- a/init_node
+++ b/init_node
@@ -34,7 +34,7 @@ sudo usermod -G jenkins jenkins-adm
sudo chown jenkins-adm.jenkins-adm /home/jenkins-adm
cd ~jenkins-adm
[ -x /usr/bin/git ] || sudo apt-get install -y git
-sudo -u jenkins-adm git clone $GIT_REPO
+sudo su jenkins-adm -l -c "git clone $GIT_REPO"
cd jenkins.debian.net
sudo mkdir -p /var/log/jenkins/
set +x
--
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