Bugzilla – Attachment 101040 Details for
Bug 24151
Add a pseudonymization process for patrons and transactions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24151: Add key to the config
Bug-24151-Add-key-to-the-config.patch (text/plain), 2.46 KB, created by
Jonathan Druart
on 2020-03-19 16:24:21 UTC
(
hide
)
Description:
Bug 24151: Add key to the config
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-19 16:24:21 UTC
Size:
2.46 KB
patch
obsolete
>From 1f47ba63fefce009ebdb6098e619da9c6ab3a2e0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Nov 2019 21:07:04 +0100 >Subject: [PATCH] Bug 24151: Add key to the config > >Sponsored-by: Association KohaLa - https://koha-fr.org/ > >Signed-off-by: Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> >--- > debian/scripts/koha-create | 4 ++++ > debian/templates/koha-conf-site.xml.in | 3 +++ > etc/koha-conf.xml | 3 +++ > 3 files changed, 10 insertions(+) > >diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create >index a4f1220dfc..d85ecffe7a 100755 >--- a/debian/scripts/koha-create >+++ b/debian/scripts/koha-create >@@ -111,6 +111,7 @@ generate_config_file() { > -e "s/__UNIXGROUP__/$username/g" \ > -e "s#__TEMPLATE_CACHE_DIR__#$TEMPLATE_CACHE_DIR#g" \ > -e "s#__TIMEZONE__#$TIMEZONE#g" \ >+ -e "s#__KEY__#$KEY#g" \ > -e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \ > -e "s#__TMP_PATH__#$TMP_PATH#g" \ > -e "s/__LOG_DIR__/\/var\/log\/koha\/$name/g" \ >@@ -495,6 +496,9 @@ if [ "${CLO_ELASTICSEARCH_SERVER}" != "" ]; then > ELASTICSEARCH_SERVER="${CLO_ELASTICSEARCH_SERVER}" > fi > >+KEY=$(htpasswd -bnBC 10 "" password | tr -d ':\n' | sed 's/$2y/$2a/'); >+ >+ > if [ "$ENABLE_SRU" != "no" ]; then > enable_sru_server > fi >diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in >index ded7acea7c..f72425a3c0 100644 >--- a/debian/templates/koha-conf-site.xml.in >+++ b/debian/templates/koha-conf-site.xml.in >@@ -402,6 +402,9 @@ __END_SRU_PUBLICSERVER__ > server. e.g. Antarctica/South_Pole --> > <timezone>__TIMEZONE__</timezone> > >+ <!-- This is the salt used to generated anonymized content --> >+ <key>__KEY__</key> >+ > <!-- flag for development purposes > dev_install is used to adjust some paths specific to dev installations > strict_sql_modes should not be used in a production environment >diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml >index 519a9ccd54..0fe2a0c292 100644 >--- a/etc/koha-conf.xml >+++ b/etc/koha-conf.xml >@@ -226,6 +226,9 @@ __PAZPAR2_TOGGLE_XML_POST__ > server. e.g. Antarctica/South_Pole --> > <timezone></timezone> > >+ <!-- This is the salt used to generated anonymized content --> >+ <key>__KEY__</key> >+ > <!-- flag for development purposes > dev_install is used to adjust some paths specific to dev installations > strict_sql_modes should not be used in a production environment >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24151
:
95959
|
95960
|
95961
|
95962
|
95963
|
95964
|
95965
|
95966
|
95967
|
95968
|
95969
|
95970
|
95971
|
95972
|
95973
|
95974
|
95975
|
95976
|
97240
|
97241
|
97242
|
97243
|
97244
|
97245
|
97246
|
97247
|
97248
|
97249
|
97250
|
97251
|
97252
|
101034
|
101035
|
101036
|
101037
|
101038
|
101039
|
101040
|
101041
|
101042
|
101043
|
101044
|
101045
|
101046
|
101047
|
101048
|
101049
|
105801
|
105802
|
105803
|
105804
|
105805
|
105806
|
105807
|
105808
|
105809
|
105810
|
105811
|
105812
|
105813
|
105814
|
105815
|
105816
|
106032
|
106033
|
106034
|
106035
|
106036
|
106037
|
106038
|
106039
|
106040
|
106041
|
106042
|
106043
|
106044
|
106045
|
106046
|
106047
|
106048
|
106049
|
106195
|
106255
|
107127
|
107225