diff --git a/install-reddit.sh b/install-reddit.sh index c19297fce..4eb7c4c9d 100755 --- a/install-reddit.sh +++ b/install-reddit.sh @@ -197,6 +197,7 @@ make optipng jpegoptim +mcrouter memcached postgresql postgresql-client @@ -294,6 +295,50 @@ fi sudo -u postgres psql reddit < $REDDIT_HOME/src/reddit/sql/functions.sql +############################################################################### +# Configure mcrouter +############################################################################### +if [ ! -d /etc/mcrouter ]; then + mkdir -p /etc/mcrouter +fi + +if [ ! -f /etc/mcrouter/global.conf ]; then + cat > /etc/mcrouter/global.conf <