]> git.koha-community.org Git - koha.git/commit
Bug 17777: koha-remove should deal with temporary uploads
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 14 Dec 2016 15:48:45 +0000 (16:48 +0100)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 22 Jan 2017 16:58:22 +0000 (17:58 +0100)
commitde76cd9c5c60bf737c6fe32a99b4dfabccf4c5c3
treedf50765236d6868f80b0bb93b2d29eb4c111f4eb
parentca7d49e69b0aeaddb14b6b8bbf1695274c1ac670
Bug 17777: koha-remove should deal with temporary uploads

If the temporary upload folder exists, it should be discarded when
removing an instance. If we do not, it may/will create problems when
recreating the same instance.

A function in koha-functions.sh is added to determine the temp directory
instead of hardcoding /tmp.

Test plan:
[1] Copy koha-functions.sh to /usr/share/koha/bin
[2] Run koha-create --create-db newinstancexx
[3] Run mkdir /tmp/koha_newinstancexx_upload (if /tmp is your temp!)
[4] Run debian/scripts/koha-remove newinstancexx
    Do not run the regular one, but verify that you use the updated one.
[5] Check that /tmp/koha_newinstancexx_upload is gone.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Karen Jen <karenliang.student@wegc.school.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2c40579077b67d4203665b7e6ecdb749235456a4)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
debian/scripts/koha-functions.sh
debian/scripts/koha-remove