summaryrefslogtreecommitdiffstats
path: root/init_node
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-02 02:10:05 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-02 02:10:05 +0200
commitf43ab38fdd11c0154aa18220e0567856025bddcb (patch)
tree052cebdbcfeb8d8f0b09e0eac5bd204f385c7ebe /init_node
parent504ee711387d891ae1322b7452ef6572b3fa7686 (diff)
downloadjenkins.debian.net-f43ab38fdd11c0154aa18220e0567856025bddcb.tar.xz
reproducible Debian: be more verbose
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'init_node')
-rwxr-xr-xinit_node3
1 files changed, 2 insertions, 1 deletions
diff --git a/init_node b/init_node
index a93c2f38..5361e979 100755
--- a/init_node
+++ b/init_node
@@ -25,18 +25,19 @@ echo
echo -n "$(date) - "
set -e
export LANG=C
+set -x
sudo addgroup --system jenkins
sudo adduser --system --shell /bin/bash --home /var/lib/jenkins --ingroup jenkins --disabled-login jenkins
sudo addgroup --system jenkins-adm
sudo adduser --system --shell /bin/bash --home /home/jenkins-adm --ingroup jenkins-adm --disabled-login jenkins-adm
sudo usermod -G jenkins jenkins-adm
-sudo mkdir /home/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
cd jenkins.debian.net
sudo mkdir -p /var/log/jenkins/
+set +x
./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log
END=$(date +'%s')