https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42861

--- Comment #3 from David Nind <[email protected]> ---
Created attachment 200794
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200794&action=edit
Bug 42861: System warning about missing encryption_key on a fresh instance

This patch updates the koha-create command to generate the random encryption
key
using pwgen with the number of characters set to 32.

Test plan:
1. In ktd, create a new instance:
    - sudo koha-create --create-db test1
    - Check the /etc/koha/sites/test1/koha-conf.xml file and verify that the
encryption_key
    is having the placeholder text '__ENCRYPTION_KEY__'

2. Apply the patch and copy the new koha-create command
    - git bz apply 42861
    - sudo cp /kohadevbox/koha/debian/scripts/koha-create /usr/sbin/koha-create

3. In ktd, create a new instance:
    - sudo koha-create --create-db test2
    - Check the /etc/koha/sites/test2/koha-conf.xml file and verify that the
encryption_key
    is generated and has 32 characters random string.

4. Sign-off

Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to