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.
This commit is contained in:
parent
0b39359d1c
commit
89d43ef4d7
1 changed files with 4 additions and 5 deletions
|
|
@ -64,12 +64,11 @@ function redis_config
|
||||||
redis_conf="/etc/redis.conf"
|
redis_conf="/etc/redis.conf"
|
||||||
elif [ -r "/etc/redis/redis.conf" ]; then
|
elif [ -r "/etc/redis/redis.conf" ]; then
|
||||||
redis_conf="/etc/redis/redis.conf"
|
redis_conf="/etc/redis/redis.conf"
|
||||||
|
elif [ -r "/opt/local/etc/redis.conf" ]; then
|
||||||
|
# MacPorts location
|
||||||
|
redis_conf="/opt/local/etc/redis.conf"
|
||||||
else
|
else
|
||||||
echo <<- 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
|
||||||
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
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue