[Koha-bugs] [Bug 7924] Fix handling of command line arguments in koha-remove

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 8 15:47:41 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7924

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #9030|0                           |1
        is obsolete|                            |
   Attachment #9366|0                           |1
        is obsolete|                            |

--- Comment #4 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 9456
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9456&action=edit
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 at cpbibliography.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list