]> git.koha-community.org Git - koha.git/commit
Bug 7924 - Fix handling of command line arguments in koha-remove
authorMagnus Enger <magnus@enger.priv.no>
Mon, 30 Apr 2012 11:49:38 +0000 (13:49 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 14 May 2012 20:39:33 +0000 (08:39 +1200)
commit72e85b40f14fe554da6346693762f735fcbfbfee
treed61aa9deabb82228e240441a640dbb38db8e14b1
parent7e8551cd9d61784d700496522a005941c46cdc9f
Bug 7924 - Fix handling of command line arguments in koha-remove

koha-remove would fail with a message like this:
Removing Koha instance --
ERROR 1396 (HY000) at line 1: Operation DROP USER failed for 'koha_--'@'%'

After fixing this, the --keep-mysql option made the script exit without doing
anything.

To test:

Alt 1
- Build package with build-git-snapshot
- Install package

Alt 2
- Replicate the changes in the patch in an existing installation

Then:
- Add instance1 and instance2
- koha-remove instance1
-- Check that script completes and the databse is gone
- koha-remove --keep-mysql instance2
-- Check that the script completes but the database is not removed

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
debian/scripts/koha-remove