summaryrefslogtreecommitdiffstats
path: root/init_node
diff options
context:
space:
mode:
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