systemd-sysusers clamav.conf
systemd-tmpfiles --create clamav.conf

# Legacy and redundant service files.
systemctl disable clamav.service freshclam.service >/dev/null 2>&1 || true

# Migration from old user-group configurations. Just to make sure.
chown -Rv clamav:clamav /var/lib/clamav
chown -Rv clamav:clamav /var/log/clamav
chown -Rv clamav:clamav /run/clamav
