]> git.koha-community.org Git - koha.git/commit
Bug 14674: koha-create should populate upload_path
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 20 Oct 2015 14:34:49 +0000 (11:34 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Oct 2015 13:09:32 +0000 (10:09 -0300)
commit4a714313fef3f1a5076cf94c4e0e4e484e4c2299
tree4514f17e36bd48f5857b26d8d858f05fa8a2c5c5
parent5153d04e41f2502160d18ae6340c82d5b15e261e
Bug 14674: koha-create should populate upload_path

This patch makes koha-create and koha-create-dirs aware of the new upload_path
configuration entry.

It defaults to /var/lib/koha/<instance>/uploads as proposed by Robin but lets the
user specify its own directory, using the --upload-path option switch that is
added by this patch.

koha-create-dirs is tweaked so it also creates this new directory.

The docs are updated accordingly.

To test:
- Apply the patch, have a packages setup (either by grabbing the relevant files [1]
  or by creating your own package).
- Run koha-create --create-db instance
=> SUCCESS: /var/lib/koha/instance/uploads directory is created
=> SUCCESS: /etc/koha/sites/instance/koha-config.xml has upload_path set correctly
- Create a new instance using the --upload-path making it point to whatever you want
=> SUCCESS: koha-conf.xml points to your chosen path
- Sign off :-D

Regards

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Does not work in its current state. Needs a follow-up.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/docs/koha-create.xml
debian/scripts/koha-create
debian/scripts/koha-create-dirs
debian/templates/koha-conf-site.xml.in