From 3e3ee798829353eb6ab3215f0a33ff0bc128e159 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Sat, 6 Jan 2018 20:30:58 +0100 Subject: [PATCH] - Fixed redis-server detection --- start_all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start_all.sh b/start_all.sh index 507b831..203df13 100755 --- a/start_all.sh +++ b/start_all.sh @@ -9,11 +9,11 @@ RED="\\033[1;31m" [ -z "$DASH_HOME" ] && echo "Needs the env var DASHENV. (Did you: . ./DASHENV/bin/activate ) Please run the script from the virtual environment." && exit 1; redis_dir="${DASH_HOME}/../redis/src/" -if [ -e "${redis_dir}" ]; then +if [ ! -e "${redis_dir}" ]; then + [ -f "`which redis-server`" ] && echo "Either ${DASH_HOME}/../redis/src/ does not exist or 'redis-server' is not installed/not on PATH. Please fix and run again." && exit 1 redis_dir="" fi -[ -f "`which redis-server`" ] || [ ! -e "${redis_dir}" ] && echo "Either ${DASH_HOME}/../redis/src/ does not exist or 'redis-server' is not installed/not on PATH. Please fix and run again." && exit 1 conf_dir="${DASH_HOME}/config/"