Subject: diversion of anacron not properly removed upon system install

From: ". fsmithred" <[email-masked]>
Date: Wed, 29 Jun 2022 06:04:45 -0400

Package: refractainstaller-base
Version: 9.6.1 or earlier

live-config diverts /usr/sbin/anacron to disable it during live sessions.
Refractainstaller removes the diversion but does not rename the file,
This results in cron jobs not running. Logrotate fails to run and log
files continue to grow.

In /usr/bin/refractainstaller and /usr/bin/refractainstaller-yad, change this:
if [ -e /usr/sbin/anacron.orig.anacron ] ; then
        dpkg-divert --no-rename --remove /usr/sbin/anacron
        mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
fi

to this:
if [ -e /usr/sbin/anacron.orig.anacron ] ; then
        rm -f /usr/sbin/anacron
        dpkg-divert --rename --remove /usr/sbin/anacron
fi

To fix an installed system, run:
    rm -f /usr/sbin/anacron
    mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
    /etc/init.d/anacron restart