Bug 17336: Add api_secret_passphrase entry in packages setup
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2016 14:56:40 +0000 (11:56 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Sun, 25 Sep 2016 13:07:23 +0000 (13:07 +0000)
commit242722e99df77be9ce0e4c6d52ff402e0a77d604
treeebdbcf5c95a8544139827e38f41234563e83b232
parentea5ec8c4d521e4138f63ddde133b6c7250005435
Bug 17336: Add api_secret_passphrase entry in packages setup

Bug 13799 introduced the api_secret_passphrase on source installs, but missed to do so on packages.

This patch introduces the entry on the template koha-conf-site.xml.in file, and
patches koha-create so it generates a randomized string (64 chars) to put in it.

To test:
- Apply the patch
- Grab the new template file:
  $ sudo cp kohaclone/debian/templates/koha-conf-site.xml.in \
            /etc/koha
- Create a new instance:
  $ kohaclone/debian/scripts/koha-create --create-db blah
=> SUCCESS: The script runs fine, /etc/koha/sites/blah/koha-conf.xml
   contains the api_secret_passphrase entry.
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
debian/scripts/koha-create
debian/templates/koha-conf-site.xml.in