From 9c18c6e8b923c9b75b290e2f2d1302090f68a9df Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 23 Aug 2016 12:31:32 +0200 Subject: reproducible Debian: add workaround for opi2a acting strange… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_jdn.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'update_jdn.sh') diff --git a/update_jdn.sh b/update_jdn.sh index 841b19c5..95e6f2d5 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -30,13 +30,18 @@ explain() { echo "--------------------------------------------" explain "$(date) - begin deployment update." -# run update at current date +# some nodes need special treatment… case $HOSTNAME in profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386) # set correct date 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 0" | sudo tee /usr/sbin/policy-rc.d + ;; *) ;; esac @@ -672,7 +677,13 @@ 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)." kgb-client --conf /srv/jenkins/kgb/debian-qa.conf --relay-msg "$MESSAGE" ;; -- cgit v1.2.3-70-g09d2