diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-02 01:28:47 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-02 01:28:47 +0200 |
commit | b7e6068a42b1e1e5149e032d560c7aadc1603918 (patch) | |
tree | b00957292c39ea98ccdd5ad2ea999521218a1987 /init_node | |
parent | 0594c1bf2864b71bcb59cf3d876067d6a7a578b5 (diff) | |
download | jenkins.debian.net-b7e6068a42b1e1e5149e032d560c7aadc1603918.tar.xz |
reproducible Debian: further simplefy
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'init_node')
-rwxr-xr-x | init_node | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -31,17 +31,11 @@ sudo adduser --system --shell /bin/bash --home /home/jenkins-adm --ingroup jenki sudo usermod -G jenkins jenkins-adm sudo mkdir /home/jenkins-adm sudo chown jenkins-adm.jenkins-adm /home/jenkins-adm - cd ~jenkins-adm -if [ ! -d jenkins.debian.net ]; then - [ -x /usr/bin/git ] || sudo apt-get install -y git - sudo -u jenkins-adm git clone $GIT_REPO - cd jenkins.debian.net -else - cd jenkins.debian.net - - sudo -u jenkins-adm git pull $GIT_REPO -fi +[ -x /usr/bin/git ] || sudo apt-get install -y git +sudo -u jenkins-adm git clone $GIT_REPO +cd jenkins.debian.net +sudo mkdir -p /var/log/jenkins/ ./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log END=$(date +'%s') |