memcache-setup.sh 345 Bytes
Newer Older
1
#!/bin/sh -e
2

3
if (php --version | grep -i HipHop > /dev/null); then
4 5
  echo "skipping memcache on HHVM"
else
Carsten Brandt committed
6
  mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc
7 8 9
  echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi