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

3 4 5
if (php --version | grep -i HHVM > /dev/null); then
  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