]> git.koha-community.org Git - koha.git/commit
Bug 20525: Add --timezone switch to koha-create
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 Apr 2018 14:07:30 +0000 (11:07 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 May 2018 15:14:46 +0000 (12:14 -0300)
commit896bb7ec54d128d829ed34a06a85a64586e53bff
treed9068ef5eb6ed0f7e9ea9b76440f9ff0f6ee1755
parent8bb531b5308635d53345cd04617b47acb076970e
Bug 20525: Add --timezone switch to koha-create

This patch adds a --timezone switch to koha-create so the timezone can
be set on creation time. It defaults to empty (i.e. using the server's
local time).

To test:
- Create an instance:
  $ sudo koha-create --create-db timezone1
=> SUCCESS: /etc/koha/sites/timezone1/koha-conf.xml contains an empty
<timezone> entry.
- Apply this patch
- Run:
  $ perl misc4dev/cp_debian_files.pl
- Create a new instance:
  $ sudo koha-create --create-db timezone2
=> SUCCESS: /etc/koha/sites/timezone2/koha-conf.xml contains an empty
<timezone> entry (i.e. the current behaviour is preserved).
- Create a new instance:
  $ sudo koha-create --create-db --timezone Your/Timezone timezone3
=> SUCCESS: /etc/koha/sites/timezone3/koha-conf.xml contains
    <timezone>Your/Timezone</timezone> (i.e. introduced behaviour works)
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
debian/docs/koha-create.xml
debian/scripts/koha-create
debian/templates/koha-conf-site.xml.in