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 94D9A1FF17C for ; Wed, 17 Sep 2025 18:22:39 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8A0E4A3FB; Wed, 17 Sep 2025 18:22:53 +0200 (CEST) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com, pmg-devel@lists.proxmox.com Date: Wed, 17 Sep 2025 18:22:11 +0200 Message-Id: <20250917162211.709800-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1758126131040 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.065 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [install.pm] Subject: [pmg-devel] [PATCH installer] pmg: ensure clamav-freshclam is enabled X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" This follows pmg-api commit: cb8e149c ("d/postinst: ensure that clamav-freshclam is enabled") the postinst invocation in pmg-api is not effective with the message: ``` /usr/sbin/policy-rc.d returned 101, not running enable clamav-freshclam ``` so enable it explicitly by creating the symlink. Signed-off-by: Stoiko Ivanov --- one alternative that might work as well would be to use `systemctl` proper in pmg-api's postinst, instead of deb-systemd-invoke - however I'm not sure about the effects this might have outside of our installer (deb-systemd-invoke was created for running in maintscripts) Proxmox/Install.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index fb23f7f..2ebd376 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -1351,6 +1351,13 @@ _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 + 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"; + } if ($iso_env->{product} eq 'pve') { -- 2.39.5 _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel