]> git.koha-community.org Git - koha.git/commit
Bug 6997: Koha-remove leaves system in inconsistent state
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 10 Oct 2011 12:11:14 +0000 (08:11 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 3 Dec 2011 06:53:51 +0000 (07:53 +0100)
commit602c528e91047e1c6c95679b8cddd7e85ddb54d5
tree4d7516d125c870ac1e11589be0ca9611b8f42f56
parentf029e9aba7d6c03b3c8e19697af31071b595dcc9
Bug 6997: Koha-remove leaves system in inconsistent state

If you accidentally delete one of the files that koha-remove is supposed to
remove, when koha-remove reaches that point in the script, it will die, leaving
later removal steps undone. This patch fixes the problem by checking for the
existence of each file prior to deleting it, so that short of an actual problem
with removing the file, the script can continue. Note that the fix for bug 6929
is also needed to prevent any problems with stopping Zebra from killing
koha-remove.

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
debian/scripts/koha-remove