From 50b8c6beae652b41e8f0fdc53d71280abd94d5bd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 23 Aug 2016 12:46:10 +0200 Subject: reproducible Debian: use different workaround for opi2a --- update_jdn.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/update_jdn.sh b/update_jdn.sh index 7bfbce7d..f0fe9936 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -37,12 +37,6 @@ case $HOSTNAME in sudo service ntp stop sudo ntpdate -b de.pool.ntp.org ;; - opi2a) - # this host is acting strange… - # restarting services cause hangs, so we don't do that - echo -e "#!/bin/sh\nexit 101" | sudo tee /usr/sbin/policy-rc.d - sudo chmod +x /usr/sbin/policy-rc.d - ;; *) ;; esac @@ -506,7 +500,11 @@ if [ $BASEDIR/hosts/$HOSTNAME/etc/munin -nt $STAMP ] || [ ! -f $STAMP ] ; then for i in apache_accesses apache_volume ; do sudo ln -s /usr/share/munin/plugins/$i $i ; done sudo ln -s /usr/share/munin/plugins/loggrep jenkins_oom fi - sudo service munin-node force-reload + if [ "$HOSTNAME" != "opi2a" ] ; then + # opi2a is strangely broken + # so this is just a hackish workaround for that… + sudo service munin-node force-reload + fi fi explain "packages configured." @@ -678,11 +676,6 @@ case $HOSTNAME in profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386) sudo date --set="+398 days +6 hours + 23 minutes" ;; - opi2a) - # this host is acting strange… - # cleaning up our workaround… - sudo rm /usr/sbin/policy-rc.d - ;; jenkins) # notify irc MESSAGE="jenkins.d.n updated to $(cd $BASEDIR ; git describe --always)." -- cgit v1.2.3-70-g09d2