#!/bin/bash set -e echo "Unzip SOLR ZIP Distribution File" mkdir /tmp/solr unzip downloads/alfresco-search-services-2.0.9.1.zip -d /tmp/solr mv /tmp/solr/alfresco-search-services /home/ubuntu # Variables SOLR_USER=ubuntu SOLR_GROUP=ubuntu SOLR_HOME=/home/ubuntu/alfresco-search-services echo "Creating SOLR systemd service file..." cat <