summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-08-23 12:31:32 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-23 12:31:32 +0200
commit9c18c6e8b923c9b75b290e2f2d1302090f68a9df (patch)
tree545b417a089e7d0ad7fffaa4822e471b2268290d /update_jdn.sh
parentb409c1e1e8a0d970aba6327a12327daf0d4a2db8 (diff)
downloadjenkins.debian.net-9c18c6e8b923c9b75b290e2f2d1302090f68a9df.tar.xz
reproducible Debian: add workaround for opi2a acting strange…
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh13
1 files changed, 12 insertions, 1 deletions
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"
;;