Koha/debian/scripts
Tomas Cohen Arazi 7ec644da06 Bug 11404: add support for Apache 2.4's config file convention
Apache 2.4 expects the sites definition files use the sufix '.conf'

To reproduce:
- Install the 'koha-common' package on Debian 7 or Ubuntu 13.10+
  (both known to include Apache 2.4).
- Create an instance (for example testlibrary) using the supplied
  commands:
 $ koha-create --create-db testlibrary
> FAIL: apache reports an error like this:
"ERROR: Site testlibrary does not exist!"

This patch adds a test on the Apache version and appends the ".conf"
sufix if needed.

To test:

1st step: koha-create gets fixed:

-- The hard way --
- Apply the patch, and build the koha-common package on top of this
  commit.
- Install the built package on an Apache 2.4 Debian-based distro (Debian 7
  or Ubuntu 13.10 will work)
- Create a test instance:
 $ koha-create --create-db testlibrary
> SUCCESS: no more apache sites related error.

-- The easy way --
- Apply the patch, and copy the koha-create into an Apache 2.4
  Debian-based distro
- Create a test instance using the koha-create script you just
  copied:
 $ ./koha-create --create-db testlibrary
> SUCCESS: no more apache sites related error.

2nd step: the rest of the touched scripts keep working as usual

koha-disable
koha-dump
koha-enable
koha-list
koha-remove
koha-restart-zebra
koha-stop-zebra
koha-start-zebra

They should all keep working. Can be tested "the easy way" too.

Note: there might be another issues regarding Apache 2.4 deployments
like the need for

 $ a2enmod access_compat

and perhaps some directory permissions tweak, which I think should be
properly documented on the install instructions.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-05-19 21:47:03 +00:00
..
koha-create Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-create-dirs Bug 9890: fix plugin handling by koha-create and koha-create-dirs 2013-06-24 06:55:36 -07:00
koha-disable Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-dump Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00: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 10150 - koha-email-disable error handling 2013-05-02 15:04:57 -07:00
koha-email-enable Bug 10157 - koha-email-enable error handling 2013-05-15 08:13:17 -04:00
koha-enable Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-enable-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-foreach Bug 5510: prepend output with system name 2010-12-19 07:10:06 +13:00
koha-list Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-mysql Bug 6486 - add the koha-mysql command 2011-08-18 21:20:52 +12:00
koha-mysqlcheck Bug 10782 - Add a koha-mysqlcheck script 2014-04-23 12:30:06 +00:00
koha-rebuild-zebra Bug 10379: silence zebra rebuild cron when no instances are enabled 2013-06-26 08:55:23 -07:00
koha-remove Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-reset-passwd Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-restart-zebra Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-restore Bug 7216 - koha-restore does not correctly set home 2011-12-06 17:01:56 +01:00
koha-run-backups Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
koha-shell Bug 8878 - a command to provide a shell with the koha environment 2012-12-20 08:01:46 -05:00
koha-start-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-start-zebra Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-stop-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-stop-zebra Bug 11404: add support for Apache 2.4's config file convention 2014-05-19 21:47:03 +00:00
koha-translate Bug 11655: koha-translate --list no longer shows 'en' 2014-02-04 17:36:39 +00: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 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00