[Koha-bugs] [Bug 5517] After removal of koha-common package in Debian Squeeze cron jobs are not deleted

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 5 06:20:58 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5517

Stephen Warren <swarren at wwwdotorg.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |swarren at wwwdotorg.org

--- Comment #5 from Stephen Warren <swarren at wwwdotorg.org> ---
apt-get remove isn't supposed to remove config files, only binary files.
/etc/cron.d/koha-common is a config file, so this is expected.

Reference:
http://linuxprograms.wordpress.com/2010/05/12/dpkg-purge-versus-remove/ (and
I'm sure there are other more authoritative sources; that's just the first
thing I found via Google)

Note that this does mean the content of /etc/cron.d/koha-common has a bug; in
3.18 at least, one of the entries protects against that situation when the
command it's going to execute is not executable (which covers when it's
missing):

*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q
$(koha-list --enabled)

However, the other entry doesn't, so will likely cause permission denied or
file not found errors if the package is removed not purged:

*/15 * * * * root koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/process_message_queue.pl

That command should probably have a "test -x XXX &&" prefix.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list