Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAlec Leamas <leamas.alec@gmail.com>2010-12-09 01:22:20 +0300
committerAlec Leamas <leamas.alec@gmail.com>2010-12-09 01:26:07 +0300
commit6b00ca238fbd52b19d0cfcbad05ad071a93272af (patch)
tree68a2ef2bf56d3375b4705a467f52d2d7e01a008c /script
parent6d6e4f92bb43eac863e3ebf983a9d500ac73359d (diff)
Fixing also logfile in redis.conf
Not tested on BSD/Darwin, might need polish for these.
Diffstat (limited to 'script')
-rwxr-xr-xscript/server12
1 files 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.