[Koha-bugs] [Bug 10104] koha-disable error handling

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 30 09:17:42 CEST 2013


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

Mason James <mtj at kohaaloha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17775|0                           |1
        is obsolete|                            |

--- Comment #8 from Mason James <mtj at kohaaloha.com> ---
Created attachment 17837
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17837&action=edit
Bug 10104 - make koha-disable more robust

koha-disable now:

- checks for the existence of the instance before any actions on it.
- checks if the instance is already disabled before touching anything (warns
otherwise)
- only reloads apache if needed
- handles more than one instance name.
- changed the docs to acknowledge the previous item.

To test:
- Apply the patch, build your package
- Run koha-disable on
  - Non existent instance (try names that are prefix and suffix of a valid one
too please)
  - Already disabled instance name.
  - Enabled instance name.

It should work as expected and warn the user on the expected wrong cases.

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
Signed-off-by: Mason James <mtj at kohaaloha.com>

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


More information about the Koha-bugs mailing list