Koha/debian/scripts
Tomas Cohen Arazi 4a714313fe 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>
2015-10-23 10:09:32 -03:00
..
koha-create Bug 14674: koha-create should populate upload_path 2015-10-23 10:09:32 -03:00
koha-create-dirs Bug 14674: koha-create should populate upload_path 2015-10-23 10:09:32 -03:00
koha-disable Bug 13785: (QA followup) koha-disable should stop the indexer daemon 2015-03-11 14:43:32 -03:00
koha-dump Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-dump-defaults Bug 5509 - use an XML parser to get values from config 2011-04-28 13:35:25 +12:00
koha-email-disable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-email-enable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-enable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-enable-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-foreach Bug 13791: make koha-list aware of plack 2015-08-24 13:00:41 -03:00
koha-functions.sh Bug 14361: koha-restart-zebra fails and probably breaks upgrade 2015-08-26 10:42:04 -03:00
koha-indexer Bug 13753: koha-indexer contains invalid statement 2015-03-02 15:25:46 +01:00
koha-list Bug 13791: make koha-list aware of plack 2015-08-24 13:00:41 -03:00
koha-mysql Bug 12372: (QA followup) Standardized argument parsing for koha-mysql. 2015-08-24 13:18:08 -03:00
koha-mysqlcheck Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-plack Bug 13791: Plack out-of-the-box support on packages 2015-08-24 13:00:39 -03:00
koha-rebuild-zebra Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-remove Bug 12312 - correctly upgrade under Apache 2.2 2014-05-26 03:41:55 +00:00
koha-reset-passwd Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-restart-zebra Bug 13896: (QA followup) fix koha-{stop|restart}-zebra too 2015-04-08 14:56:44 -03:00
koha-restore Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-run-backups Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
koha-shell Bug 15012: use sudo instead of su in koha-shell 2015-10-22 00:02:50 -03:00
koha-start-sip Bug 7904 - remove unnecessary path from SIP script 2015-02-05 14:44:48 -03:00
koha-start-zebra Bug 13896: Fix pid file creation, use proper directory instead of /tmp/ 2015-04-08 14:47:46 -03:00
koha-stop-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-stop-zebra Bug 13896: (QA followup) fix koha-{stop|restart}-zebra too 2015-04-08 14:56:44 -03:00
koha-translate Bug 14203: Message for non-existent lang removal 2015-05-26 10:42:05 -03:00
koha-upgrade-schema Add koha-upgrade-schema, a script to upgrade the database schema. 2010-05-25 07:59:35 -04:00
koha-upgrade-to-3.4 Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00