From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id EC9B11FF146 for ; Tue, 09 Jun 2026 12:46:45 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 60330C86A; Tue, 9 Jun 2026 12:46:44 +0200 (CEST) From: Stoiko Ivanov To: pmg-devel@lists.proxmox.com Subject: [PATCH installer v2 2/2] pmg: ensure clamav-daemon is enabled Date: Tue, 9 Jun 2026 12:45:20 +0200 Message-ID: <20260609104559.1697131-3-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260609104559.1697131-1-s.ivanov@proxmox.com> References: <20260609104559.1697131-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1781001924197 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.085 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: SRKQZX3URL7YNTGOG4RZYVCO4LMJGMVI X-Message-ID-Hash: SRKQZX3URL7YNTGOG4RZYVCO4LMJGMVI X-MailFrom: s.ivanov@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: the version currently in debian testing (and backported by us) installs the service without enabling it, the tag named `debian-1.4.4` otoh enables it. with the back and forth unconditionally enabling it in our installer seems like a robust measure. follows commit: 72480b2 ("pmg: ensure clamav-freshclam is enabled") Signed-off-by: Stoiko Ivanov --- Proxmox/Install.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 8fd51a9..5f748d6 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -1438,13 +1438,18 @@ _EOD "$targetdir/etc/systemd/system/multi-user.target.wants/clamav-clamonacc.service" or $!{ENOENT} or warn "failed to disable clamav-clamonacc.service - $!\n"; - # clamav-freshclam is not enabled automatically anymore in recent versions - so ensure - # it will start - see https://salsa.debian.org/clamav-team/clamav/-/merge_requests/7 + # clamav daemons are not enabled automatically anymore in recent versions and the + # upstream maintainers do change that part comparatively often - so just ensure + # that the services are enabled here syscmd( "ln -sf /lib/systemd/system/clamav-freshclam.service $targetdir/etc/systemd/system/multi-user.target.wants/clamav-freshclam.service" ) == 0 || warn "failed to enable clamav-freshclam.service - $!\n"; + syscmd( + "ln -sf /lib/systemd/system/clamav-daemon.service $targetdir/etc/systemd/system/multi-user.target.wants/clamav-daemon.service" + ) == 0 + || warn "failed to enable clamav-daemon.service - $!\n"; } if ($iso_env->{product} eq 'pve') { -- 2.47.3