Koha/debian/scripts
Jared Camins-Esakov 297d22459f Bug 6913: More options for koha-create and koha-remove
This commit makes koha-create more flexible by adding a number of command-line
and configuration options.

The biggest change is to add support for pre-determined MySQL credentials using
a file in /etc/koha/passwd (for security reasons, if you use this feature, make
sure the file is not world-readable). The configuration file has the following
format:
instance:user:password:database
The database is optional, but the other two are both required if you want to
specify MySQL credentials. If no credentials are specified for a given instance,
the standard koha_instance username and an auto-generated password are used.

The following additional command line options are now available:
* --use-db - use a pre-existing database, see also --database
* --database - specify the name of the mysql database (still defaults to
  koha_instance)
* --passwdfile - specify a custom (Koha) passwd file for MySQL credentials

The following additional variables are now available (for use in
koha-sites.conf or a custom config file):
* OPACPORT (previously added but not documented) - port on which the OPAC
  should be served
* OPACPREFIX - prefix for the OPAC's virtual host
* OPACSUFFIX - suffix for the OPAC's virtual host

This commit also adds the --keep-mysql option to koha-remove, which, if
specified, will prevent koha-remove from deleting the database or MySQL user
when removing an instance.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-02-02 09:15:20 +01:00
..
koha-create Bug 6913: More options for koha-create and koha-remove 2012-02-02 09:15:20 +01:00
koha-create-dirs Bug 7008 - create tmp dir for zebra 2011-12-03 07:56:44 +01:00
koha-disable
koha-dump Bug 5509 - use an XML parser to get values from config 2011-04-28 13:35:25 +12: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 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -04: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 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -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 6031 : Fix for syntax (bashism crept into a pure sh script) 2011-05-02 12:44:48 +12:00
koha-remove Bug 6913: More options for koha-create and koha-remove 2012-02-02 09:15:20 +01:00
koha-reset-passwd Use /etc/mysql/koha-common.cnf instead of the Debian one. 2010-05-25 08:04:32 -04:00
koha-restart-zebra Add scripts to start, stop, restart Zebra, and rebuild its indexes. 2010-05-25 07:59:39 -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 6275 - allow automated backups for packages 2011-08-11 12:45:53 +12:00
koha-start-zebra Add scripts to start, stop, restart Zebra, and rebuild its indexes. 2010-05-25 07:59:39 -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-upgrade-schema
koha-upgrade-to-3.4 Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00