diff --git a/bin/generate-solr-config.sh b/bin/generate-solr-config.sh index cb51ee84..ab986946 100755 --- a/bin/generate-solr-config.sh +++ b/bin/generate-solr-config.sh @@ -120,7 +120,9 @@ 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.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