Fixing also logfile in redis.conf
Not tested on BSD/Darwin, might need polish for these.
This commit is contained in:
parent
6d6e4f92bb
commit
6b00ca238f
1 changed files with 3 additions and 9 deletions
|
|
@ -70,15 +70,9 @@ function redis_config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp $redis_conf config/redis.conf
|
cp $redis_conf config/redis.conf
|
||||||
case $OS in
|
sed -i -e '/^[^#]*daemonize/s/yes/no/' \
|
||||||
## bsd sed doesn't seem to handle empty in-place edits correctly
|
-e '/^[^#]*logfile/s|.*|logfile /var/log/diaspora/redis.log|' \
|
||||||
*[Bb][Ss][Dd]*|Darwin)
|
config/redis.conf
|
||||||
sed -i '' '/^[^#]*daemonize/s/yes/no/' config/redis.conf
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
sed -i '/^[^#]*daemonize/s/yes/no/' config/redis.conf
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Scan for -p, find out what port thin is about to use.
|
# Scan for -p, find out what port thin is about to use.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue