From 6ebcee5bee6e461075b73ca2c639b425208334e6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 2 Jun 2017 12:47:58 +0200 Subject: reproducible Debian: fix to make it work with more restricted sudo Signed-off-by: Holger Levsen --- init_node | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init_node b/init_node index 78781953..2bb91326 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 -- cgit v1.2.3-70-g09d2