#!/usr/bin/env bash

echo Fixing memcached.conf - bind memcached to lo

yum install memcached -y

sed -i.bak -e 's|^OPTIONS=.*$|OPTIONS="-l 127.0.0.1"|' /etc/sysconfig/memcached

systemctl enable memcached
systemctl restart memcached

yum -y install thirdlane-cacher thirdlane-pusher
