@@ -, +, @@
---
debian/scripts/koha-create | 4 ++++
debian/templates/koha-conf-site.xml.in | 3 +++
etc/koha-conf.xml | 3 +++
3 files changed, 10 insertions(+)
--- a/debian/scripts/koha-create
+++ a/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
--- a/debian/templates/koha-conf-site.xml.in
+++ a/debian/templates/koha-conf-site.xml.in
@@ -403,6 +403,9 @@ __END_SRU_PUBLICSERVER__
server. e.g. Antarctica/South_Pole -->
__TIMEZONE__
+
+ __KEY__
+
+
+ __KEY__
+