X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.unchecked;h=41b664016126c642d12d7bb159d038e9f99f5516;hb=9f371390bb90395b2f2f0b65c91c21047896774a;hp=406636ef65b0e0504e0c92bfdcae143c4420208c;hpb=e58293b290b33e0033491fce6afc5645e5748d93;p=dak.git diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked index 406636ef..41b66401 100755 --- a/config/debian/cron.unchecked +++ b/config/debian/cron.unchecked @@ -35,7 +35,14 @@ if lockfile -r3 $LOCKFILE; then echo "--" >> $report # sync with debbugs - rsync -aq --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ + rsync -aq -e "ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30" --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ 2>/dev/null && touch $lockdir/synced_bts_version || true + + NOW=$(date +%s) + TSTAMP=$(stat -c %Y $lockdir/synced_bts_version) + DIFF=$(( NOW - TSTAMP )) + if [ $DIFF -ge 259200 ]; then + echo "Kids, you tried your best and you failed miserably. The lesson is, never try. (Homer Simpson)" + fi if lockfile -r3 $NOTICE; then LOCKDAILY="YES"