From b367113a44e939392df3a2bc27561069c0eaa7f3 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 6 Jan 2017 00:10:05 +0100 Subject: [PATCH] check first, install later --- static/nextant.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/nextant.sh b/static/nextant.sh index 1741d350..2e896714 100644 --- a/static/nextant.sh +++ b/static/nextant.sh @@ -20,12 +20,6 @@ SCRIPTS=/var/scripts # Must be root [[ `id -u` -eq 0 ]] || { echo "Must be root to run script, in Ubuntu type: sudo -i"; exit 1; } -echo "Starting to setup Solr & Nextant on Nextcloud..." -sleep 3 - -# Installing requirements -apt install default-jre -y - # Check if it's a clean install if [ -d $SOLR_HOME ] then @@ -35,6 +29,12 @@ then exit 1 fi +echo "Starting to setup Solr & Nextant on Nextcloud..." +sleep 3 + +# Installing requirements +apt install default-jre -y + # Getting and installing Apache Solr echo "Installing Apache Solr..." mkdir -p $SOLR_HOME