Bug 24151: Rename the config key with 'bcrypt_settings'
[koha-equinox.git] / debian / scripts / koha-create
index 5cc3f2f..390879f 100755 (executable)
@@ -111,7 +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#__BCRYPT_SETTINGS__#$BCRYPT_SETTINGS#g" \
         -e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \
         -e "s#__TMP_PATH__#$TMP_PATH#g" \
         -e "s/__LOG_DIR__/\/var\/log\/koha\/$name/g" \
@@ -496,7 +496,7 @@ if [ "${CLO_ELASTICSEARCH_SERVER}" != "" ]; then
     ELASTICSEARCH_SERVER="${CLO_ELASTICSEARCH_SERVER}"
 fi
 
-KEY=$(htpasswd -bnBC 10 "" password | tr -d ':\n' | sed 's/$2y/$2a/');
+BCRYPT_SETTINGS=$(htpasswd -bnBC 10 "" password | tr -d ':\n' | sed 's/$2y/$2a/');
 
 
 if [ "$ENABLE_SRU" != "no" ]; then