Koha/debian/docs
Tomas Cohen Arazi 06a1f18a1b Bug 17951: Make koha-create set template_cache_dir correctly
This patch makes koha-create (and friends) handle the template_cache_dir
config entry correctly.

It does so by:
- Adding a replaceable string to the template for koha-conf.xml
- Making koha-create-dirs create the needed directories (i.e.
 /var/cache/koha/instance and /var/cache/koha/instance/templates)
- Adding a --template-cache-dir switch to koha-create (so sysadmins can
  specify their favourite directory for the templates cache).
- koha-remove now takes care of the instance's *templates* dir.
- The install scripts now automatically create /var/cache/koha so it can
  be used later by koha-create and friends. It does so the same way it does
  for other install-created directories.

To test, you should ideally be able to build your own packages. This
instructions can be followed by people that doesn't have that ability
yet. But can be used on a custom packages setup too.

To test:
- Make sure you have the latest misc4dev in your kohadevbox (if it is a
  fresh box you have it already)
- Run:
  $ sudo perl misc4dev/cp_debian_files.pl
- Manually create the /var/cache/koha dir (skip if you have your own
        packages):
  $ sudo mkdir /var/cache/koha
- Create a new instance:
  $ sudo koha-create --create-db cachetest
=> SUCCESS:
    * /etc/koha/sites/cachetest/koha-conf.xml contains
    template_cache_dir and is populated with /var/cache/koha/cachetest/templates
    * The directory /var/cache/koha/cachetest/templates exists!
- Create a new instance, pass your own cache dir:
  $ sudo koha-create --create-db --template-cache-dir /tmp cachetest2
=> SUCCESS: etc/koha/sites/cachetest2/koha-conf.xml contains template_cache_dir
   and is populated with /tmp
- Run:
  $ man koha-create
=> SUCCESS: The docs mention the --template-cache-dir option switch
    correctly.
- Sign off :-D!

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-22 13:15:39 -03:00
..
koha-common.xml Bug 19462: Add koha-elasticsearch documentation 2017-10-27 14:10:31 -03:00
koha-create-dirs.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-create.xml Bug 17951: Make koha-create set template_cache_dir correctly 2017-12-22 13:15:39 -03:00
koha-disable.xml Bug 10104 - make koha-disable more robust 2013-05-01 21:58:38 -04:00
koha-dump-defaults.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-dump.xml Bug 14532: Add --exclude-indexes switch to koha-dump 2016-03-02 04:39:51 +00:00
koha-elasticsearch.xml Bug 19462: Add koha-elasticsearch documentation 2017-10-27 14:10:31 -03:00
koha-email-disable.xml Bug 10150 - koha-email-disable error handling 2013-05-02 15:04:57 -07:00
koha-email-enable.xml Bug 10157 - koha-email-enable error handling 2013-05-15 08:13:17 -04:00
koha-enable-sip.xml Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-enable.xml Bug 10101 - make koha-enable more robust 2013-05-01 22:00:13 -04:00
koha-foreach.xml Bug 8566: [SIGNED-OFF] Enable koha-foreach to insert the instancename into commands 2014-07-02 15:45:25 -03:00
koha-indexer.xml Bug 8773 - Start per-instance koha-index-daemon in .deb setup 2014-07-14 09:15:22 -03:00
koha-list.xml Bug 10622: (follow-up) uppercase "SIP" in documentation and help text 2013-09-21 17:47:54 +00:00
koha-mysql.xml Bug 12372: Updated man pages for koha-mysql 2015-08-24 13:18:12 -03:00
koha-mysqlcheck.xml Bug 10782 - Add a koha-mysqlcheck script 2014-04-23 12:30:06 +00:00
koha-plack.xml Bug 13791: koha-plack documentation 2015-08-24 13:00:40 -03:00
koha-rebuild-zebra.xml [SIGNED-OFF] Bug 15113: koha-rebuild-zebra should check USE_INDEXER_DAEMON and skip if enabled 2016-04-19 17:47:42 +00:00
koha-remove.xml Bug 17266 - Update man page for koha-remove with -p 2016-09-15 13:46:10 +00:00
koha-reset-passwd.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-restart-zebra.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-restore.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-run-backups.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-shell.xml Bug 8878 - a command to provide a shell with the koha environment 2012-12-20 08:01:46 -05:00
koha-sitemap.xml Bug 16016: Sitemap handling scripts for packages 2016-05-04 13:34:21 +00:00
koha-start-sip.xml Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-start-zebra.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-stop-sip.xml Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-stop-zebra.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-translate.xml Bug 16749: Update debian docs for koha-translate 2017-02-17 13:20:57 +00:00
koha-upgrade-schema.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-upgrade-to-3.4.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-zebra.xml Bug 17467: Add koha-zebra documentation 2017-10-27 14:10:30 -03:00
LEEME.Debian Bug 7197 - add a Spanish readme file to the packages 2011-12-14 15:38:04 +01:00