]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 11 Feb 2016 18:38:56 +0000 (19:38 +0100)
commitc5cb615f9ce18b650a270e444dbc6868aa09fa0d
treedfe16fdaf69219eff51afe512deb0647e9f02375
parent11796d60fa3167bd8b715a2289f90272e65af360
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>
(cherry picked from commit 69fd29942c843b8b15df1bb75cd25451344341ba)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
debian/scripts/koha-remove