You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2011/05/20 06:25:09 UTC

svn commit: r1125228 - /spamassassin/trunk/build/mkupdates/mkupdate-with-scores

Author: dos
Date: Fri May 20 04:25:09 2011
New Revision: 1125228

URL: http://svn.apache.org/viewvc?rev=1125228&view=rev
Log:
also skip DNS reload if generating a new update and publishing is disabled

Modified:
    spamassassin/trunk/build/mkupdates/mkupdate-with-scores

Modified: spamassassin/trunk/build/mkupdates/mkupdate-with-scores
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkupdates/mkupdate-with-scores?rev=1125228&r1=1125227&r2=1125228&view=diff
==============================================================================
--- spamassassin/trunk/build/mkupdates/mkupdate-with-scores (original)
+++ spamassassin/trunk/build/mkupdates/mkupdate-with-scores Fri May 20 04:25:09 2011
@@ -350,13 +350,17 @@ if [ $UPDATED_VERSIONS -gt 0 ]; then
   # name servers will probably update and reload via a commit hook trigger or
   # on a set interval
 
-  # delete any existing jobs in at queue 'n' used for named reloads
-  for JOB in `at -l -q n | cut -d" " -f1`; do atrm $JOB; done
+  if [ $AUTOUPDATESDISABLED -eq 1 -a $REVERT_REVISION -eq 0 ]; then
+    echo "DNS updating disabled (auto update publishing disabled), skipping DNS reload"
+  else
+    # delete any existing jobs in at queue 'n' used for named reloads
+    for JOB in `at -l -q n | cut -d" " -f1`; do atrm $JOB; done
 
-  # schedule a job to tick the zone serial and reload named in 16 minutes
-  # (mirror rsyncs are done every 15 minutes)
-  cd
-  echo "/export/home/updatesd/svn/spamassassin/build/mkupdates/tick_zone_serial" | at -q n now + 16min
+    # schedule a job to tick the zone serial and reload named in 16 minutes
+    # (mirror rsyncs are done every 15 minutes)
+    cd
+    echo "/export/home/updatesd/svn/spamassassin/build/mkupdates/tick_zone_serial" | at -q n now + 16min
+  fi
 fi
 
 cd