From bc5a69f0505b3e0f1d356a73a3e186215055ac81 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 28 Feb 2024 16:06:09 +0100 Subject: [PATCH] installation: pmg: handle clamav-clamonacc.service being already disabled Signed-off-by: Thomas Lamprecht --- Proxmox/Install.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 5556f1a..2161ebf 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -1168,7 +1168,7 @@ _EOD # on-access scanner (blocks file access if it thinks file is bad) needs to be explicit # configured by the user, otherwise it fails, and it doesn't make sense for most users. unlink "$targetdir/etc/systemd/system/multi-user.target.wants/clamav-clamonacc.service" - or warn "failed to disable clamav-clamonacc.service - $!"; + or $!{ENOENT} or warn "failed to disable clamav-clamonacc.service - $!\n"; } if ($iso_env->{product} eq 'pve') { -- 2.39.2