Merge branch '676-bsd-sed' of https://github.com/flah00/diaspora into flah00-676-bsd-sed
This commit is contained in:
commit
9925aba066
1 changed files with 9 additions and 1 deletions
|
|
@ -70,7 +70,15 @@ function redis_config
|
|||
fi
|
||||
|
||||
cp $redis_conf config/redis.conf
|
||||
sed -i '/^[^#]*daemonize/s/yes/no/' 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
|
||||
}
|
||||
|
||||
# Scan for -p, find out what port thin is about to use.
|
||||
|
|
|
|||
Loading…
Reference in a new issue