Koha/debian/scripts
Tomas Cohen Arazi 39d3b9088a Bug 10159 - koha-rebuild-zebra error handling
This patch makes koha-rebuild-zebra:
- Check for the existence of the instance
- Handle arbitrary amount of instance parameters
- Capture -a and -b (which made the script rebuild twice the chosen DB). It adds the extended version (--authorities and --biblios respectively) of the option switch. This makes the -a and -b switches work as "only do authorities" (or viceversa). They can be used concurrently, which is the default behaviour when no switch is provided.
- Handle -v (and --verbose) as koha-rebuild-zebra options, to ease the use for non-techie users.
- The rebuild_zebra.pl is wrapped inside an IF to return error values if we ever make rebuild_zebra.pl return error codes (this is pointed in the code).
- Added -h/--help switches and an 'usage' output :-D Please provide patches for any wording issues, or contact me to fix it.

To test:
- Apply the patch and create your packages (or just use the script from your branch)
- Run it in this scenarios / options
  - -h/--help to see the available option switches
  - Mix them with one or more instances, of which some could be fake
  - try -a/--authorities and -b/--biblios in all possible combinations
  - try -v/--verbose works

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-05-15 08:13:03 -04:00
..
koha-create Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-create-dirs Bug 7008 - create tmp dir for zebra 2011-12-03 07:56:44 +01:00
koha-disable Bug 10104 - Followup: fix param check 2013-05-01 21:59:27 -04:00
koha-dump Bug 8268: Add database dump to export tool 2012-07-12 17:40:21 +02:00
koha-dump-defaults Bug 5509 - use an XML parser to get values from config 2011-04-28 13:35:25 +12:00
koha-email-disable Bug 10150 - koha-email-disable error handling 2013-05-02 15:04:57 -07:00
koha-email-enable Bug 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -04:00
koha-enable Bug 10101 - Follwup: fix param check 2013-05-01 22:00:51 -04:00
koha-enable-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-foreach Bug 5510: prepend output with system name 2010-12-19 07:10:06 +13:00
koha-list Bug 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -04:00
koha-mysql Bug 6486 - add the koha-mysql command 2011-08-18 21:20:52 +12:00
koha-rebuild-zebra Bug 10159 - koha-rebuild-zebra error handling 2013-05-15 08:13:03 -04:00
koha-remove Bug 8162: allow packages to work on Ubuntu Precise 2012-08-29 13:46:04 +02:00
koha-reset-passwd Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-restart-zebra Bug 10149 - koha-restart-zebra error handling (rewording) 2013-05-01 21:57:06 -04:00
koha-restore Bug 7216 - koha-restore does not correctly set home 2011-12-06 17:01:56 +01:00
koha-run-backups Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
koha-shell Bug 8878 - a command to provide a shell with the koha environment 2012-12-20 08:01:46 -05:00
koha-start-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-start-zebra Bug 10144 - koha-start-zebra error handling 2013-05-01 21:57:49 -04:00
koha-stop-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-stop-zebra Bug 6929 - ensure that koha-stop-zebra will try to stop everything 2011-10-19 16:26:57 +13:00
koha-translate Bug 10041 - Provide a koha-translate script to aid package users on installing translations 2013-05-01 22:02:16 -04:00
koha-upgrade-schema Add koha-upgrade-schema, a script to upgrade the database schema. 2010-05-25 07:59:35 -04:00
koha-upgrade-to-3.4 Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00