|
@@ -4,8 +4,8 @@
|
|
|
# Two path checks would both always run in php. In this code the check
|
|
|
# for apc.so only happens if the check for php fails. Is that ok?
|
|
|
|
|
|
-fw_exists /usr/local/bin/php
|
|
|
-[ $? -ne 0 ] || { \
|
|
|
+RETCODE=$(fw_exists /usr/local/bin/php)
|
|
|
+[ ! "$RETCODE" == 0 ] || { \
|
|
|
echo "Moving PHP config files into place";
|
|
|
sudo cp ../config/php.ini /usr/local/lib/php.ini
|
|
|
sudo cp ../config/php-fpm.conf /usr/local/lib/php-fpm.conf
|
|
@@ -18,12 +18,12 @@ cd php-5.4.13
|
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
+sudo cp ../config/php.ini /usr/local/lib/php.ini
|
|
|
+sudo cp ../config/php-fpm.conf /usr/local/lib/php-fpm.conf
|
|
|
+
|
|
|
cd ..
|
|
|
-fw_exists /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so
|
|
|
-[ $? -ne 0 ] || { return 0; }
|
|
|
+RETCODE=$(fw_exists /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so)
|
|
|
+[ ! "$RETCODE" == 0 ] || { return 0; }
|
|
|
|
|
|
cd php-5.4.13
|
|
|
-printf "\n" | sudo pecl install apc-beta
|
|
|
-
|
|
|
-sudo cp ../config/php.ini /usr/local/lib/php.ini
|
|
|
-sudo cp ../config/php-fpm.conf /usr/local/lib/php-fpm.conf
|
|
|
+printf "\n" | sudo pecl install apc-beta
|