Koha/debian/templates
Andreas Roussos f12dabe6cc Bug 21440: koha-create expects the file passed by $DEFAULTSQL to be in gzip format
koha-create contains a call to `zcat` which fails if the file passed
as an argument is not in gzip format.

This patch fixes the issue by adding the -f flag to the zcat call in
koha-create, as per the top-voted answers in the following SE URLs:
https://unix.stackexchange.com/a/77309
https://unix.stackexchange.com/a/131944

Test plan:
1) in /etc/koha/koha-sites.conf, set the DEFAULTSQL variable to point
   to an _uncompressed_ SQL database dump
2) run `koha-create --create-db instance` and notice how it fails with:
   gzip: /path/to/dump.sql: not in gzip format
3) apply the patch
4) notice the extra line of information "The SQL file can be optionally
   compressed with gzip" in koha-sites.conf
5) run the `koha-create` command again, this time it should work
6) repeat with DEFAULTSQL pointing to a gzip'd dump, it should work too

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-09 09:59:10 +00:00
..
apache-shared-disable.conf
apache-shared-intranet-plack.conf Bug 21267: Set X-FORWARDED-PROTO https if required 2018-08-31 12:46:58 +00:00
apache-shared-intranet.conf Bug 21031: Apache Rewrite rules don't work for API when using anything but Debian package Plack configuration 2018-08-02 10:23:08 -03:00
apache-shared-opac-plack.conf Bug 21267: Set X-FORWARDED-PROTO https if required 2018-08-31 12:46:58 +00:00
apache-shared-opac.conf Bug 21031: Apache Rewrite rules don't work for API when using anything but Debian package Plack configuration 2018-08-02 10:23:08 -03:00
apache-shared.conf Bug 16520: Add new Plack-SetEnv syntax to Apache configuration files 2016-10-11 12:37:16 +00:00
apache-site-https.conf.in Bug 17332: Remove memcached config from apache files 2016-09-25 13:06:36 +00:00
apache-site.conf.in Bug 17332: Remove memcached config from apache files 2016-09-25 13:06:36 +00:00
koha-common.conf
koha-conf-site.xml.in Bug 14302: (follow-up) Remove traces in koha-create 2018-08-31 11:24:22 +00:00
koha-sites.conf Bug 21440: koha-create expects the file passed by $DEFAULTSQL to be in gzip format 2018-10-09 09:59:10 +00:00
log4perl-site.conf.in
marc21-retrieval-info-auth-dom.xml
marc21-retrieval-info-bib-dom.xml Bug 17871: (followup) Remove zebra::* from the packages templates 2017-02-07 17:50:42 +00:00
normarc-retrieval-info-auth-dom.xml
normarc-retrieval-info-bib-dom.xml Bug 17871: (followup) Remove zebra::* from the packages templates 2017-02-07 17:50:42 +00:00
plack.psgi Bug 16733: [Follow-up] Add $home to api path too 2017-01-20 14:15:27 +00:00
SIPconfig.xml Bug 17228 - Make two versions of SIPconfig.xml identical 2016-09-02 15:48:14 +00:00
unimarc-retrieval-info-auth-dom.xml
unimarc-retrieval-info-bib-dom.xml Bug 17871: (followup) Remove zebra::* from the packages templates 2017-02-07 17:50:42 +00:00
zebra-authorities-dom-site.cfg.in
zebra-biblios-dom-site.cfg.in
zebra.passwd.in