Koha/debian
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
..
scripts Bug 6517 - [REVISED] koha-create wants "use database" in DEFAULTSQL 2011-09-12 10:10:46 +12:00
source
templates Bug 6540 - Make ZEBRA_MARC_FORMAT and ZEBRA_LANGUAGE configurable for koha-create 2011-07-28 14:17:10 +12:00
bd-to-depends
build-git-snapshot Bug 6722: [SIGNED-OFF] Cause build output to appear on the screen 2011-09-04 20:14:08 +12:00
changelog
compat
control Bug 6626 - add sudo as a package dependency 2011-08-14 19:47:19 +12:00
control.in Bug 6626 - add sudo as a package dependency 2011-08-14 19:47:19 +12:00
copyright
koha-common.config
koha-common.cron.d
koha-common.cron.daily Bug 6275 - allow automated backups for packages 2011-08-11 12:45:53 +12:00
koha-common.cron.hourly
koha-common.dirs
koha-common.init
koha-common.install Bug 6486 - make koha-mysql get installed with the packages 2011-08-18 21:20:57 +12:00
koha-common.logrotate
koha-common.postinst
koha-common.README.Debian
koha-common.templates
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps
README.build Bug 5602: Changes to account for the version update. 2011-08-04 10:26:39 +12:00
rules
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.