Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit ece083b

Browse files
committed
PR #1134 follow-up: Use instead of .
1 parent 2d68f03 commit ece083b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/scripts/configure-solr.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
# `solr` in the `installed_extras`, and is currently set up for the D7 versions
88
# of Apache Solr Search or Search API Solr.
99

10-
NAME="d8"
11-
SOLR_SETUP_COMPLETE_FILE="/etc/drupal_vm_solr_config_complete_$NAME"
10+
SOLR_CORE_NAME="d8"
11+
SOLR_SETUP_COMPLETE_FILE="/etc/drupal_vm_solr_config_complete_$SOLR_CORE_NAME"
1212

1313
# Search API Solr module.
1414
SOLR_DOWNLOAD="http://ftp.drupal.org/files/projects/search_api_solr-8.x-1.x-dev.tar.gz"
1515
SOLR_DOWNLOAD_DIR="/tmp"
1616
SOLR_MODULE_NAME="search_api_solr"
1717
SOLR_VERSION="5.x"
18-
SOLR_CORE_PATH="/var/solr/data/$NAME"
18+
SOLR_CORE_PATH="/var/solr/data/$SOLR_CORE_NAME"
1919

2020
# Check to see if we've already performed this setup.
2121
if [ ! -e "$SOLR_SETUP_COMPLETE_FILE" ]; then
2222
# Download and expand the Solr module.
2323
wget -qO- $SOLR_DOWNLOAD | tar xvz -C $SOLR_DOWNLOAD_DIR
2424

2525
# Copy new Solr collection core with the Solr configuration provided by module.
26-
sudo su - solr -c "/opt/solr/bin/solr create -c $NAME -d $SOLR_DOWNLOAD_DIR/$SOLR_MODULE_NAME/solr-conf/$SOLR_VERSION/"
26+
sudo su - solr -c "/opt/solr/bin/solr create -c $SOLR_CORE_NAME -d $SOLR_DOWNLOAD_DIR/$SOLR_MODULE_NAME/solr-conf/$SOLR_VERSION/"
2727

2828
# Adjust the autoCommit time so index changes are committed in 1s.
2929
sudo sed -i 's/\(<maxTime>\)\([^<]*\)\(<[^>]*\)/\11000\3/g' $SOLR_CORE_PATH/conf/solrconfig.xml

0 commit comments

Comments
 (0)