From d554917ea1d452077297ae20a8af1dd2fb79bcd5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 18 Apr 2014 10:25:01 +0200 Subject: be quiet on default --- etc/cron.daily/jenkins | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'etc/cron.daily') diff --git a/etc/cron.daily/jenkins b/etc/cron.daily/jenkins index 8dd3a56d..47e52f9b 100755 --- a/etc/cron.daily/jenkins +++ b/etc/cron.daily/jenkins @@ -1,9 +1,8 @@ #!/bin/sh -# maybe I'm too stupid to use apaches REMOTE_HOST directive correctly -# I couldn't get it to work. so I use REMOTE_ADDR... -# see etc/apache2/sites-available/jenkins.debian.net +# this is needed as this IP address has to be hardcoded in /etc/apache2/sites-available/jenkins.debian.net -if [ "$(host git.debian.org)" != "git.debian.org has address 5.153.231.21" ] ; then - echo "IP address of git.debian.org has changed, please update etc/apache2/sites-available/jenkins.debian.net and etc/cron.daily/jenkins" +if [ "$(host git.debian.org|head -1)" != "git.debian.org has address 5.153.231.21" ] ; then + echo "IP address of git.debian.org has changed, please update etc/apache2/sites-available/jenkins.debian.net and etc/cron.daily/jenkins in jenkins.debian.net.git" + host git.debian.org fi -- cgit v1.2.3-70-g09d2