Created
January 26, 2015 21:11
-
-
Save bountin/75e7ac8354f9f66af572 to your computer and use it in GitHub Desktop.
Puphpet test script for installing pgsql.so
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy to puphpet/files/exec-always/ | |
EXTENSION_CONFIG=`grep pgsql.so /etc/hhvm/php.ini` | |
PHP_INI="/etc/hhvm/php.ini" | |
if [ -z "$EXTENSION_CONFIG" ] | |
then | |
echo "Installing hhvm-pgsql.so" | |
echo "" >> $PHP_INI | |
echo "hhvm.dynamic_extension_path = /vagrant/puphpet/files/hhvm-extensions" >> $PHP_INI | |
echo "hhvm.dynamic_extensions[pgsql] = pgsql.so" >> $PHP_INI | |
/etc/init.d/hhvm restart | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment