From c53d34191a4d9e9ece7ebb9550683e02f2705244 Mon Sep 17 00:00:00 2001 From: ruby Date: Tue, 9 May 2017 15:11:28 +0200 Subject: [PATCH] fixes to init script --- initscript.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/initscript.sh b/initscript.sh index efc4133..fc5cb88 100755 --- a/initscript.sh +++ b/initscript.sh @@ -1,7 +1,7 @@ #! /bin/bash ruby_command="ruby" rake_command="rake" -bundler_command="bundler" +bundler_command="bundle" # Are the necessary programs installed? command -v $ruby_command >/dev/null 2>&1 || { echo >&2 "The given ruby command does not exist. Please change the command or install ruby"; exit 1; } @@ -17,11 +17,11 @@ cp -u config/omniauth_secrets.yml.example config/omniauth_secrets.yml echo "Bundle install..." # Run Bundler -$bundler_command install || {echo "Bundler failed. Please run \"$bundle\_command install\" seperately and debug the errors, before running this script again";exit 1;} +$bundler_command install || { echo "Bundler failed. Please run \"$bundle\_command install\" seperately and debug the errors, before running this script again";exit 1; } echo "Migrate the database..." # Run the migration -$rake_command db:migrate ||{echo "Migration failed. Please run \"$rake\_command db:migrate\" seperately and debug the errors, before running this script again"; exit 1;} +$rake_command db:migrate || { echo "Migration failed. Please run \"$rake\_command db:migrate\" seperately and debug the errors, before running this script again"; exit 1; } echo "Start the sunspot server" # Run Sunspot @@ -34,7 +34,7 @@ if [ ! -f config/start_topic.yml ]; then echo "1" > config/start_topic.yml fi -# Generate fetadmin user "admin@fet.at", password: 12345678 +touch config/crawl_config.yml