From d056a45e079ddeff4b959b145e8b38de6f1f3a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Sat, 4 Nov 2023 10:13:12 +0100 Subject: [PATCH 1/2] Skipped generating solrconfig.xml file copies in generate-solr-config.sh --- bin/generate-solr-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index cb51ee84..7190da0c 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -119,8 +119,8 @@ else fi # Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema -sed -i.bak '//d' $DESTINATION_DIR/solrconfig.xml -sed -i.bak2 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml +sed -i '//d' $DESTINATION_DIR/solrconfig.xml +sed -i 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml if [ "$GENERATE_SOLR_TMPDIR" != "" ]; then echo Removing temp dir: $GENERATE_SOLR_TMPDIR From ebbfdfeb134de0d65491ac93734207929c749595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Fri, 10 Nov 2023 07:38:37 +0100 Subject: [PATCH 2/2] fixup! Skipped generating solrconfig.xml file copies in generate-solr-config.sh --- bin/generate-solr-config.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index 7190da0c..ab986946 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -119,8 +119,10 @@ else fi # Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema -sed -i '//d' $DESTINATION_DIR/solrconfig.xml -sed -i 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml +sed -i.bak '//d' $DESTINATION_DIR/solrconfig.xml +sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml + +rm $DESTINATION_DIR/solrconfig.xml.bak if [ "$GENERATE_SOLR_TMPDIR" != "" ]; then echo Removing temp dir: $GENERATE_SOLR_TMPDIR