Skip to content

Commit 73c3dcc

Browse files
committed
Merge branch '4.5'
2 parents 89e8845 + 98dbd6b commit 73c3dcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/generate-solr-config.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ fi
120120

121121
# Adapt autoSoftCommit to have a recommended value, and remove add-unknown-fields-to-the-schema
122122
sed -i.bak '/<updateRequestProcessorChain name="add-unknown-fields-to-the-schema".*/,/<\/updateRequestProcessorChain>/d' $DESTINATION_DIR/solrconfig.xml
123-
sed -i.bak2 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml
123+
sed -i.bak 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' $DESTINATION_DIR/solrconfig.xml
124+
125+
rm $DESTINATION_DIR/solrconfig.xml.bak
124126

125127
if [ "$GENERATE_SOLR_TMPDIR" != "" ]; then
126128
echo Removing temp dir: $GENERATE_SOLR_TMPDIR

0 commit comments

Comments
 (0)