]> git.koha-community.org Git - koha.git/commit
Bug 10104 - make koha-disable more robust
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 23 Apr 2013 16:29:02 +0000 (13:29 -0300)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 9 May 2013 09:17:32 +0000 (21:17 +1200)
commit4af1b0835e46aa0a904c3061eee5d44df1ca4cad
tree5fb3d9d40a22066f34d2731d6b75b43a35e1c653
parent53d05eac9893ee6b9e70087529f427582275d2e6
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@bigballofwax.co.nz>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit b055f7d86c7772cf52c4a20d04a7e1cb0c8c19c9)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 3f03c2699062d399f3f7392acfd3e32b50cdf81a)

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
debian/docs/koha-disable.xml
debian/scripts/koha-disable