From 89d43ef4d73cc6d8613b87a42181ceb0a55a9476 Mon Sep 17 00:00:00 2001 From: Adam McDonald Date: Sun, 23 Jan 2011 12:46:12 -0800 Subject: [PATCH] Updated the server script to support Redis when it has been installed via MacPorts. Also, fixed an echo error with it not being displayed correctly. --- script/server | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/script/server b/script/server index ce767beea..04359d420 100755 --- a/script/server +++ b/script/server @@ -64,12 +64,11 @@ function redis_config redis_conf="/etc/redis.conf" elif [ -r "/etc/redis/redis.conf" ]; then redis_conf="/etc/redis/redis.conf" + elif [ -r "/opt/local/etc/redis.conf" ]; then + # MacPorts location + redis_conf="/opt/local/etc/redis.conf" else - echo <<- EOM - Don't know how to configure redis for this platform. Copy - the configuration file redis.conf to the config directory - and patch it manually. In particular, don't daemonize. - EOM + echo "Don't know how to configure redis for this platform. Copy the configuration file redis.conf to the config directory and patch it manually. In particular, don't daemonize." >&2 return fi