]> git.koha-community.org Git - koha.git/commit
Bug 10646 - warn if mod_rewrite is not enabled
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 19 Nov 2013 03:19:12 +0000 (16:19 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 10 Jan 2014 15:45:38 +0000 (15:45 +0000)
commite4387c1de9738cf19eb4d78b620b92a03fe1b131
treea7d7fdae38d2a31437b631ccd9c713a49731c1d7
parent0ba13938fbbee5d3fd86207b1fd5c8fe3b21383e
Bug 10646 - warn if mod_rewrite is not enabled

Koha requires mod_rewrite. If it's not enabled in Apache, then
koha-create will now abort with a helpful error message. Also adds a
warning when not run as root to avoid confusing errors.

Test plan:
 * apply the patch
 * a2dismod rewrite
 * run koha-create without sudo, note the error about being root
 * run koha-create with sudo, note the error about rewrite
 * a2enmod rewrute
 * repeat test above, note that it works

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Works as expected.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/scripts/koha-create