Koha-clms/debian/scripts
Saiful Amin b98a0c87fb
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 <david@davidnind.com>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-27 12:13:01 +00:00
..
koha-create Bug 42861: System warning about missing encryption_key on a fresh instance 2026-07-27 12:13:01 +00:00
koha-create-dirs
…
koha-disable
…
koha-dump
…
koha-dump-defaults
…
koha-elasticsearch
…
koha-email-disable
…
koha-email-enable
…
koha-enable
…
koha-es-indexer
…
koha-foreach
…
koha-functions.sh Bug 42366: Fix debug_mode test for koha-conf.xml 2026-04-28 15:48:12 -06:00
koha-indexer
…
koha-list
…
koha-mysql
…
koha-mysqlcheck
…
koha-passwd
…
koha-plack
…
koha-rebuild-zebra
…
koha-remove
…
koha-reset-passwd
…
koha-restore
…
koha-run-backups
…
koha-shell
…
koha-sip
…
koha-sitemap
…
koha-translate
…
koha-upgrade-schema
…
koha-upgrade-to-3.4
…
koha-worker
…
koha-z3950-responder
…
koha-zebra
…