]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 8 May 2012 21:55:58 +0000 (17:55 -0400)
commit7ff47e1e62abf7842753c43592c3c457f4863f2b
tree86a2dd8ce0b8759d0521b66f4256caaa00c1d120
parentb2b678581637f669de687de070417fae0a887328
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: Jared Camins-Esakov <jcamins@cpbibliography.com>
Cherry-picked to 3.6.x prior to inclusion in Master because this is required for
the release build.
debian/scripts/koha-remove