Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
switch php version during post provisioning
Browse files Browse the repository at this point in the history
no 2 images anymore for php5.5 and 7.0, both are installed in the same
image now and can be switched with hypernode-switch-php. Precise
hypernode-vagrant will still use separate images.
  • Loading branch information
vdloo committed Apr 13, 2017
1 parent 00add8e commit d10187f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vagrant/provisioning/hypernode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ if ! find /data/web/public/ -mindepth 1 -name '*.php' -name '*.html' | read; the
chown -R $user:$user /data/web/public
fi

# Start the correct FPM
which php5 && PHP_VERSION="php5" || /bin/true
which php7.0 && PHP_VERSION="php7.0" || /bin/true
which hypernode-switch-php && hypernode-switch-php ${PHP_VERSION/php/} || /bin/true

if $xdebug_enabled; then
XDEBUG_RELEASE="https://xdebug.org/files/xdebug-2.5.0rc1.tgz"
echo "Ensuring Xdebug is installed"

# Install Xdebug for retrieving extended debug information and
# stacktraces from your development environment.
which php5 && PHP_VERSION="php5" || /bin/true
which php7.0 && PHP_VERSION="php7.0" || /bin/true

if [ -z $PHP_VERSION ]; then
echo "No supported PHP version found for this xdebug installation script. Skipping.."
Expand Down

0 comments on commit d10187f

Please sign in to comment.