~ubuntu-branches/ubuntu/utopic/clamav/utopic-updates

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-04-25 15:01:05 UTC
  • mfrom: (0.35.41 sid)
  • Revision ID: package-import@ubuntu.com-20140425150105-n4wqi1w9yjgktgfb
Tags: 0.98.1+dfsg-5ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  dbowner=clamav
67
67
  udlogfile="$FRESHCLAMLOGFILE"
68
68
  maxatt=5
69
 
  
 
69
 
 
70
  # Read the configuration file
 
71
  slurp_config "$FRESHCLAMCONFFILE"
 
72
 
70
73
  # Get the debconf answers
71
74
  db_metaget clamav-freshclam/local_mirror value || true
72
75
  [ "$RET" = "" ] || rawmirrors="$RET"
126
129
  db_metaget clamav-freshclam/PrivateMirror value || true
127
130
  PrivateMirror="$RET"
128
131
 
129
 
  slurp_config "$FRESHCLAMCONFFILE"
130
 
 
131
132
  # Test for the broken versions, see #741675.
132
133
  if [ "$2" = "0.98.1+dfsg-3" ] || [ "$2" = "0.98.1+dfsg-1+deb7u2" ] || [ "$2" = "0.98.1+dfsg-1+deb6u2" ]; then
133
134
    # Use the defaults instead of the bogus values created by that versions.
147
148
    if echo "$udlogfile" | grep -q '^/dev/'; then
148
149
      make_logrotate=false
149
150
    else
150
 
      if [ -n "$LogRotate" ]; then
 
151
      if [ "$LogRotate" = "true" ]; then
151
152
        make_logrotate=true
152
153
      else
153
154
        make_logrotate=false