]> git.koha-community.org Git - koha.git/commit
Bug 9754: koha-remove optionally includes var/lib and var/spool
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 14 Jan 2016 11:29:45 +0000 (12:29 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 29 Jan 2016 10:40:52 +0000 (11:40 +0100)
commit69fd29942c843b8b15df1bb75cd25451344341ba
treea5067d20c4d8e6e1095531ffbda883080dfbd99c
parent7132c9b49ca0c2abf7592d56e4b467be9107dd3f
Bug 9754: koha-remove optionally includes var/lib and var/spool

Currently, the files in the folder /var/lib/koha/[instance] and also
in /var/spool/koha/[instance] are not removed.
This patch adds the option -p|--purge-all to include those two
directories when removing files.

Note: There was a small bug in the for loop. On the -k line the extra
shift statement is one too much.

NOTE: Verify that you use the adjusted koha-remove in the test plan
and not accidentally an older version of this script.

Test plan:
[1] Create an instance test.
[2] Run koha-remove and verify that /var/lib/koha/test still exists.
[3] Create an instance test2.
[4] Run koha-remove -k -p and verify that the sql database still exists
    but the two instance folders in var/lib/koha and var/spool/koha are
    gone.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 1d99fa026bb05225df93e56740456ba185a5937d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
debian/scripts/koha-remove