~ubuntu-branches/ubuntu/wily/clamav/wily-proposed

« 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-03-15 12:47:13 UTC
  • mfrom: (0.35.39 sid)
  • Revision ID: package-import@ubuntu.com-20140315124713-xqgr3h376zqnw9yb
Tags: 0.98.1+dfsg-3ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
  [ "$RET" = "true" ] && notify="/etc/clamav/clamd.conf"
122
122
  db_metaget clamav-base/Bytecode value || true
123
123
  bytecode="$RET"
 
124
  db_metaget clamav-base/LogRotate value || true
 
125
  LogRotate="$RET"
 
126
  db_metaget clamav-base/PrivateMirror value || true
 
127
  PrivateMirror="$RET"
124
128
 
125
129
  slurp_config "$FRESHCLAMCONFFILE"
126
130
 
134
138
    if echo "$udlogfile" | grep -q '^/dev/'; then
135
139
      make_logrotate=false
136
140
    else
137
 
      make_logrotate=true
 
141
      if [ -n $LogRotate ]; then
 
142
        make_logrotate=true
 
143
      else
 
144
        make_logrotate=false
 
145
      fi
138
146
    fi
139
147
    [ -n "$User" ] || User=clamav
140
148
    if [ "$make_logrotate" = 'true' ]; then
229
237
LogSyslog $LogSyslog
230
238
LogFacility $LogFacility
231
239
LogFileMaxSize $LogFileMaxSize
 
240
LogRotate $Logrotate
232
241
LogTime $LogTime
233
242
Foreground $Foreground
234
243
Debug $Debug
243
252
ScriptedUpdates $ScriptedUpdates
244
253
CompressLocalDatabase $CompressLocalDatabase
245
254
Bytecode $bytecode
 
255
PrivateMirror $PrivateMirror
246
256
EOF
247
257
 
248
258
  if [ -n "$notify" ] ;then