]> 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)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 3 Dec 2011 12:13:12 +0000 (07:13 -0500)
commit1ac7e7c60a9c395e8e5b2ed3451d7523d47887f9
treeed7f096643d3bdab91c3fc6b576761aad97f3251
parent1edcc77602d4f5e60adbd23c5db40e7982b3e015
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>
(cherry picked from commit 602c528e91047e1c6c95679b8cddd7e85ddb54d5)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
debian/scripts/koha-remove