Redis.conf: handling read-only install...

This commit is contained in:
Alec Leamas 2010-12-08 16:05:20 +01:00
parent 497dcccb8f
commit 843405116f

View file

@ -46,6 +46,11 @@ function chk_service
function redis_config
# Create/update the local redis.conf file from /etc master
{
if [ ! -w config ]; then
# read-only installation, should be OK
return
fi
if [ -r "/etc/redis.conf" ]; then
redis_conf="/etc/redis.conf"
elif [ -r "/etc/redis/redis.conf" ]; then