Redis.conf: handling read-only install...
This commit is contained in:
parent
497dcccb8f
commit
843405116f
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue