]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 2 May 2013 02:29:45 +0000 (22:29 -0400)
commit3f03c2699062d399f3f7392acfd3e32b50cdf81a
treef3c197cface9d4483b330ca8307bf7c78b13fcab
parent6f40e7ebd667fbaf850046b8b4c3246e2dd3e170
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>
debian/docs/koha-disable.xml
debian/scripts/koha-disable