summaryrefslogtreecommitdiffstats
path: root/init_node
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-02 12:47:58 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-02 12:47:58 +0200
commit6ebcee5bee6e461075b73ca2c639b425208334e6 (patch)
treecf33c737df25109a360094f81c273adebd23219c /init_node
parent5a0b721c51ddd065e50ae3c573677c37d91c196e (diff)
downloadjenkins.debian.net-6ebcee5bee6e461075b73ca2c639b425208334e6.tar.xz
reproducible Debian: fix to make it work with more restricted sudo
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'init_node')
-rwxr-xr-xinit_node2
1 files changed, 1 insertions, 1 deletions
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