From 843405116fac9ab7219a61199593da0d0d7cb126 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Wed, 8 Dec 2010 16:05:20 +0100 Subject: [PATCH] Redis.conf: handling read-only install... --- script/server | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/server b/script/server index 0e070ed56..512decd48 100755 --- a/script/server +++ b/script/server @@ -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