[Koha-bugs] [Bug 10101] koha-enable error handling

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 23 17:08:48 CEST 2013


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 17618
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17618&action=edit
Bug 10101 - make koha-enable more robust

koha-enable now:

- checks for the existence of the instance before any other action on it.
- checks if the instance is already enabled before changing stuff in the config
files.
- only reloads apache if it is needed!
- handles more than one instance name as parameter (the code was there, a check
for the cardinality of the args prevented it from working).
- documents this behaviour change in the docs
- doesn't break if the provided (invalid) instance name is a prefix/suffix of a
real one (added -x to the relevant grep command).

To test:
- Aplpy the patch, build your packages
- Run koha-enable on
  - Non existent instance (try using a prefix or a suffix of an already created
one too).
  - Already enabled existent instance name.
  - Disabled instance.

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba

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


More information about the Koha-bugs mailing list