From 30e5e1a260a5b150d95bd597b77f75e60e66f69a Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:28:14 +0200 Subject: [PATCH] Fixed backup extension when modifying solrconfig.xml (#76) --- .github/init_solr.sh | 2 +- bin/generate-solr-config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/init_solr.sh b/.github/init_solr.sh index e5322392..0ae3319e 100755 --- a/.github/init_solr.sh +++ b/.github/init_solr.sh @@ -234,7 +234,7 @@ solr_cloud_configure_collection() { # Adapt autoSoftCommit to have a recommended value sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' "${TEMPLATE_DIR}/solrconfig.xml" || exit_on_error "Can't modify file '${TEMPLATE_DIR}/solrconfig.xml'" # Configure spellcheck component - sed -i.bar 's/_text_<\/str>/meta_content__text_t<\/str>/' "${TEMPLATE_DIR}/solrconfig.xml" + sed -i.bak 's/_text_<\/str>/meta_content__text_t<\/str>/' "${TEMPLATE_DIR}/solrconfig.xml" # Add spellcheck component to /select handler sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' "${TEMPLATE_DIR}/solrconfig.xml" } diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index 2194b022..ac7ab0fe 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -122,7 +122,7 @@ fi sed -i.bak '//d' $DESTINATION_DIR/solrconfig.xml sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml # Configure spellcheck component -sed -i.bar 's/_text_<\/str>/meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml +sed -i.bak 's/_text_<\/str>/meta_content__text_t<\/str>/' $DESTINATION_DIR/solrconfig.xml # Add spellcheck component to /select handler sed -i.bak 's//\n \n spellcheck<\/str>\n <\/arr>/' $DESTINATION_DIR/solrconfig.xml