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
koha-create.8 Bug 4877 [ENH] - [SIGNED-OFF] more man page improvements 2011-09-04 20:22:18 +12: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
koha-email-enable
koha-enable
koha-foreach Bug 5510: prepend output with system name 2010-12-19 07:10:06 +13:00
koha-list
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
koha-reset-passwd
koha-restart-zebra
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
koha-stop-zebra
koha-upgrade-schema
koha-upgrade-to-3.4 Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00