Merge branch '676-bsd-sed' of https://github.com/flah00/diaspora into flah00-676-bsd-sed

This commit is contained in:
MrZYX 2010-12-08 19:36:14 +01:00
commit 9925aba066

View file

@ -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.