]> git.proxmox.com Git - pve-installer.git/commitdiff
installation: pmg: handle clamav-clamonacc.service being already disabled
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Feb 2024 15:06:09 +0000 (16:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Feb 2024 15:06:09 +0000 (16:06 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Install.pm

index 5556f1a58fad27d7dc7555bcc9d3548a5a14fe57..2161ebf1dd05ccc91067937929df3fa000db6021 100644 (file)
@@ -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') {