From 6b00ca238fbd52b19d0cfcbad05ad071a93272af Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Wed, 8 Dec 2010 23:22:20 +0100 Subject: [PATCH] Fixing also logfile in redis.conf Not tested on BSD/Darwin, might need polish for these. --- script/server | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/script/server b/script/server index 0e748ef15..9a6fb530d 100755 --- a/script/server +++ b/script/server @@ -70,15 +70,9 @@ function redis_config fi cp $redis_conf config/redis.conf - case $OS in - ## bsd sed doesn't seem to handle empty in-place edits correctly - *[Bb][Ss][Dd]*|Darwin) - sed -i '' '/^[^#]*daemonize/s/yes/no/' config/redis.conf - ;; - *) - sed -i '/^[^#]*daemonize/s/yes/no/' config/redis.conf - ;; - esac + sed -i -e '/^[^#]*daemonize/s/yes/no/' \ + -e '/^[^#]*logfile/s|.*|logfile /var/log/diaspora/redis.log|' \ + config/redis.conf } # Scan for -p, find out what port thin is about to use.