MagnusEnger / fix-koha-conf

Ad hoc script for updating config files for Koha instances created with the Debian packages. WORK IN PROGRESS!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME

fix-koha-conf

SYNOPSIS

./fix-koha-conf.sh mykoha

WARNINGS!

This is very much an ongoing WORK IN PROGRESS!

This script WILL NOT preserve custom changes to config files, apart from passwords in koha-conf.xml!

Make sure you read through fix-koha-conf.sh and that you understand what it does BEFORE running the script.

BACKGROUND

See the following Koha bug reports for why this script is necessary:

PREPARATION

A couple of sample config templates are provided along with the main script, but these are only intended as examples, you need to create your own templates before you use the script. (If you use the provided templates as is, your instances will be set up to use NORMARC indexing. You probably don't want that.) Here is how to create new templates:

  • Make sure your package installation of Koha is as up to date as you want it to be

  • Create a new instance, e.g. fixconfig

  • Copy the relevant config files to the same directory as fix-koha-conf.sh, and give them a ".template" extension:

    • cp /etc/koha/sites/fixconfig/koha-conf.xml koha-conf.xml.template

    • cp /etc/koha/sites/fixconfig/zebra-biblios-dom.cfg zebra-biblios-dom.cfg.template

  • Replace "fixconfig" with "__INSTANCENAME__" in both files

  • Replace passwords in koha-conf.xml with relevant placeholders

AUTHOR

Magnus Enger, magnus@enger.prv.no

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

About

Ad hoc script for updating config files for Koha instances created with the Debian packages. WORK IN PROGRESS!


Languages

Language:Shell 54.1%Language:Perl 45.9%