This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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.
1414SOLR_DOWNLOAD=" http://ftp.drupal.org/files/projects/search_api_solr-8.x-1.x-dev.tar.gz"
1515SOLR_DOWNLOAD_DIR=" /tmp"
1616SOLR_MODULE_NAME=" search_api_solr"
1717SOLR_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.
2121if [ ! -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
You can’t perform that action at this time.
0 commit comments