solr: Modify the startup script so that we can change the installation directory.

This commit is contained in:
Andrea Dell'Amico 2018-12-20 17:55:38 +01:00
parent e5a00f23f0
commit 2ea3e2c77c
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
with_items: '{{ solr_jar_files }}' with_items: '{{ solr_jar_files }}'
- name: install the solr init script - name: install the solr init script
copy: src=solr dest=/etc/init.d/solr mode=0755 owner=root group=root template: src=solr dest=/etc/init.d/solr mode=0755 owner=root group=root
- name: Install the solr default - name: Install the solr default
template: src=solr-default.j2 dest=/etc/default/solr.in.sh mode=0644 owner=root group=root template: src=solr-default.j2 dest=/etc/default/solr.in.sh mode=0644 owner=root group=root

View File

@ -33,7 +33,7 @@
# update-rc.d solr enable # update-rc.d solr enable
# Where you extracted the Solr distribution bundle # Where you extracted the Solr distribution bundle
SOLR_INSTALL_DIR="/opt/solr" SOLR_INSTALL_DIR="{{ solr_server_dir }}"
if [ ! -d "$SOLR_INSTALL_DIR" ]; then if [ ! -d "$SOLR_INSTALL_DIR" ]; then
echo "$SOLR_INSTALL_DIR not found! Please check the SOLR_INSTALL_DIR setting in your $0 script." echo "$SOLR_INSTALL_DIR not found! Please check the SOLR_INSTALL_DIR setting in your $0 script."