~ubuntu-branches/ubuntu/precise/spamassassin/precise-updates

« back to all changes in this revision

Viewing changes to debian/spamassassin.cron.daily

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-11-20 08:52:13 UTC
  • mfrom: (5.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20081120085213-vliy0zy1uubsdlp9
Tags: 3.2.5-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Keep libio-zlib-perl (>= 1.04) as an alternate depends to
    perl-modules >= 5.10 for easy backporting

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
 
30
30
# Update
 
31
umask 022
31
32
sa-update || exit 0
32
33
 
33
34
# Compile, if rules have previously been compiled, and it's possible
35
36
    sa-compile > /dev/null 2>&1
36
37
fi
37
38
 
 
39
# Fixup perms -- group and other should be able to read and execute, 
 
40
# but never write.  Works around sa-compile's failure to obey umask.
 
41
if [ -d /var/lib/spamassassin ]; then
 
42
    chmod -R go-w,go+rX /var/lib/spamassassin/
 
43
fi
 
44
 
38
45
# Reload
39
46
if which invoke-rc.d >/dev/null 2>&1; then
40
47
    invoke-rc.d spamassassin reload > /dev/null 2>&1