forked from ISTI-ansible-roles/ansible-roles
solr: Modify the startup script so that we can change the installation directory.
This commit is contained in:
parent
e5a00f23f0
commit
2ea3e2c77c
|
@ -47,7 +47,7 @@
|
|||
with_items: '{{ solr_jar_files }}'
|
||||
|
||||
- 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
|
||||
template: src=solr-default.j2 dest=/etc/default/solr.in.sh mode=0644 owner=root group=root
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
# update-rc.d solr enable
|
||||
|
||||
# Where you extracted the Solr distribution bundle
|
||||
SOLR_INSTALL_DIR="/opt/solr"
|
||||
SOLR_INSTALL_DIR="{{ solr_server_dir }}"
|
||||
|
||||
if [ ! -d "$SOLR_INSTALL_DIR" ]; then
|
||||
echo "$SOLR_INSTALL_DIR not found! Please check the SOLR_INSTALL_DIR setting in your $0 script."
|
Loading…
Reference in New Issue