spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: r797841 - in /spamassassin/trunk/build/automc: etc-rsyncd.conf rsync_to_spamassassin2
Date Sat, 25 Jul 2009 21:20:30 GMT
Author: jm
Date: Sat Jul 25 21:20:27 2009
New Revision: 797841

URL: http://svn.apache.org/viewvc?rev=797841&view=rev
Log:
update rsync config to remove obsolete stable upload location; chmod files before rsyncing
to sa2

Modified:
    spamassassin/trunk/build/automc/etc-rsyncd.conf
    spamassassin/trunk/build/automc/rsync_to_spamassassin2

Modified: spamassassin/trunk/build/automc/etc-rsyncd.conf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/automc/etc-rsyncd.conf?rev=797841&r1=797840&r2=797841&view=diff
==============================================================================
--- spamassassin/trunk/build/automc/etc-rsyncd.conf (original)
+++ spamassassin/trunk/build/automc/etc-rsyncd.conf Sat Jul 25 21:20:27 2009
@@ -15,13 +15,13 @@
 secrets file = /export/home/corpus-rsync/secrets
 incoming chmod = a+r
 
-[stable-corpus]
-comment = SpamAssassin Corpus upload directory (Stable Branch)
-path = /export/home/corpus-rsync/stable-corpus
-read only = false
-auth users = *
-secrets file = /export/home/corpus-rsync/secrets
-incoming chmod = a+r
+##[stable-corpus]
+##comment = SpamAssassin Corpus upload directory (Stable Branch)
+##path = /export/home/corpus-rsync/stable-corpus
+##read only = false
+##auth users = *
+##secrets file = /export/home/corpus-rsync/secrets
+##incoming chmod = a+r
 
 # Rescoring runs
 [submit]

Modified: spamassassin/trunk/build/automc/rsync_to_spamassassin2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/automc/rsync_to_spamassassin2?rev=797841&r1=797840&r2=797841&view=diff
==============================================================================
--- spamassassin/trunk/build/automc/rsync_to_spamassassin2 (original)
+++ spamassassin/trunk/build/automc/rsync_to_spamassassin2 Sat Jul 25 21:20:27 2009
@@ -2,8 +2,14 @@
 
 PATH=$PATH:/opt/sfw/bin
 export PATH
-/opt/sfw/bin/rsync --delete --exclude=ARCHIVE -rze ssh \
+
+# these are world-readable for users on the zone, and the dirs are writable
+chmod -R a+r /export/home/bbmass/uploadedcorpora/
+chmod -R a+rw /export/home/bbmass/uploadedcorpora/*/ham
+chmod -R a+rw /export/home/bbmass/uploadedcorpora/*/spam
+
+/opt/sfw/bin/rsync --delete --exclude=ARCHIVE -aze ssh \
     /export/home/corpus-rsync root@spamassassin2:/export/home/
-/opt/sfw/bin/rsync --delete --exclude=ARCHIVE -rze ssh \
+/opt/sfw/bin/rsync --delete --exclude=ARCHIVE -aze ssh \
     /export/home/bbmass/uploadedcorpora root@spamassassin2:/export/home/bbmass/
 



Mime
View raw message