~ubuntu-branches/ubuntu/trusty/clamav/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/clamav-freshclam.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Tautschnig, Stephen Gran, Michael Tautschnig
  • Date: 2010-09-26 11:18:22 UTC
  • mfrom: (0.39.8 squeeze)
  • mto: (122.1.1 raring-security)
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: james.westby@ubuntu.com-20100926111822-403d4clfy324f9z6
Tags: 0.96.3+dfsg-2
[ Stephen Gran ]
* Add NotifyClamd only if set to nonempty value.

[ Michael Tautschnig ]
* Cherry-pick from upstream: Only enable RLIMIT_DATA warning on *BSD
  (already included in Ubuntu's 1ubuntu3) (closes: #598083).
* Do rmdir /etc/clamav, /var/log/clamav, /var/lib/clamav in all postrms as
  we cannot count on clamav-base's postrm to be the last one being called
  (thanks piuparts).
* Remove trailing / in freshclam's DatabaseDirectory default value
  (closes: #598084).

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
  [ -z "$LogFileMaxSize" ] && LogFileMaxSize=0
177
177
  [ -z "$Foreground" ] && Foreground=false
178
178
  [ -z "$Debug" ] && Debug=false
179
 
  [ -z "$DatabaseDirectory" ] && DatabaseDirectory='/var/lib/clamav/'
 
179
  [ -z "$DatabaseDirectory" ] && DatabaseDirectory='/var/lib/clamav'
180
180
  [ -z "$DNSDatabaseInfo" ] && DNSDatabaseInfo='current.cvd.clamav.net'
181
181
  [ -z "$AllowSupplementaryGroups" ] && AllowSupplementaryGroups=false
182
182
  [ -z "$PidFile" ] && PidFile='/var/run/clamav/freshclam.pid'
216
216
 
217
217
  if [ -n "$notify" ] ;then
218
218
    echo "NotifyClamd $notify" >> $DEBCONFILE
219
 
  else
220
 
    echo "NotifyClamd no" >> $DEBCONFILE
221
219
  fi
222
220
 
223
221
  if [ "$runas" != "cron" ] || [ "$runas" != "manual" ]; then