clamav: Create backup of signature files
Message ID | 1461761148-13125-1-git-send-email-michael.tremer@ipfire.org |
---|---|
State | Rejected |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (hedwig.ipfire.org [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id C015E6103C for <patchwork@ipfire.org>; Wed, 27 Apr 2016 14:46:23 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id E0AB0C60; Wed, 27 Apr 2016 14:46:22 +0200 (CEST) Received: from rice-oxley.tremer.co.uk (5.152.115.87.dyn.plus.net [87.115.152.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id A634EC60; Wed, 27 Apr 2016 14:46:18 +0200 (CEST) From: Michael Tremer <michael.tremer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] clamav: Create backup of signature files Date: Wed, 27 Apr 2016 13:45:48 +0100 Message-Id: <1461761148-13125-1-git-send-email-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Cc: Michael Tremer <michael.tremer@ipfire.org> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
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