Koha/debian/scripts
Magnus Enger b3b6278e20 Bug 6517 - [REVISED] koha-create wants "use database" in DEFAULTSQL
The revised patch quotes the variable $mysqldb, as suggested by Frère
Sébastien Marie.

This patch makes sure that pointing DEFAULTSQL in /etc/koha/koha-sites.conf
to any (gzip'ed) file produced by mysqldump works, by adding the name of the
database to the end of the call to mysql, when the specified SQL file is
loaded. Files produced with koha-dump-defaults should still work too.

To test:
- Apply the patch
- Create a new package with build-git-snapshot
- Install the package
- Create an SQL file from an existing installation with mysqldump
- gzip the SQL file
- point DEFAULTSQL to the file in /etc/koha/koha-sites.conf
- create a new site with koha-create --create-db

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-09-12 10:10:46 +12:00
..
koha-create Bug 6517 - [REVISED] koha-create wants "use database" in DEFAULTSQL 2011-09-12 10:10:46 +12:00
koha-create-dirs Centralize creation of Koha instance dirs. 2010-05-25 07:59:42 -04:00
koha-create.8 Bug 4877 [ENH] - [SIGNED-OFF] more man page improvements 2011-09-04 20:22:18 +12:00
koha-disable Add koha-disable, a script to disable a Koha instance. 2010-05-25 07:59:29 -04:00
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 5313 - allow creation of libraries with hyphens 2010-12-13 21:34:03 +13: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 5509 - use an XML parser to get values from config 2011-04-28 13:35:25 +12: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 Add scripts to start, stop, restart Zebra, and rebuild its indexes. 2010-05-25 07:59:39 -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 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00