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 01:58:38 +0000 (21:58 -0400)
commitb055f7d86c7772cf52c4a20d04a7e1cb0c8c19c9
tree7a9683bfd243187a5f2dbcee861db44af98643dc
parent98bde26d2571b43ecee07e017e36f45e1aa6e680
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>
debian/docs/koha-disable.xml
debian/scripts/koha-disable