mbox

clamav: Create backup of signature files

Message ID 1461761148-13125-1-git-send-email-michael.tremer@ipfire.org
State Rejected
Headers

Message

Michael Tremer April 27, 2016, 10:45 p.m. UTC
  After clamav is updated, the signature files need to be
re-downloaded. This is often unnecessary and delays restarting
clamd, squidclamav and other dependent services.

This takes a long time on slow internet connection and transfers
about 110MB of data.

This change will backup these files and freshclam will update
or re-download them only if necessary.

Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
---
 config/backup/includes/clamav | 2 ++
 lfs/clamav                    | 2 +-
 src/paks/clamav/install.sh    | 1 +
 src/paks/clamav/uninstall.sh  | 2 ++
 4 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 config/backup/includes/clamav