summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-30 14:30:35 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-30 14:30:35 +0200
commit536130abc60d579e48b14cdac64375828280e7e8 (patch)
treef80bec0089d0d66bda2061da3e96df93a6604974
parent8fe606678d5018fac473abd3cba0be67d97dc8d0 (diff)
downloadjenkins.debian.net-536130abc60d579e48b14cdac64375828280e7e8.tar.xz
use more sudo and install munin-node on the build hosts
-rwxr-xr-xupdate_jdn.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 29de8569..c6616ed4 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -97,6 +97,8 @@ if [ -f /etc/debian_version ] ; then
debootstrap
devscripts
git
+ munin-node
+ munin-plugins-extra
schroot
screen
subversion
@@ -153,7 +155,6 @@ if [ -f /etc/debian_version ] ; then
mr
mtr-tiny
munin
- munin-plugins-extra
ntp
openbios-ppc
openbios-sparc
@@ -255,7 +256,7 @@ sudo service munin-node force-reload
#
cd $BASEDIR
for dir in bin logparse job-cfg features live ; do
- cp --preserve=mode,timestamps -r $dir /srv/jenkins/
+ sudo cp --preserve=mode,timestamps -r $dir /srv/jenkins/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
sudo mkdir -p /var/lib/jenkins/.ssh
@@ -369,6 +370,6 @@ rgrep FIXME $BASEDIR/* | grep -v "rgrep FIXME" | grep -v echo
#
# finally
#
-touch $STAMP # so on the next run, only configs newer than this file will be updated
+sudo touch $STAMP # so on the next run, only configs newer than this file will be updated
rm -f $TMPFILE
explain "$(hostname -f) successfully updated."