Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit e9ff6c3

Browse files
committed
fix packages for profiler
1 parent fe383a5 commit e9ff6c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ Vagrant.configure("2") do |config|
9393
VAGRANT_GROUP: box_config.get(:group),
9494
VAGRANT_HOSTNAME: box_config.get(:hostname),
9595
VAGRANT_FPM_SERVICE: box_config.flag?(:php7) ? 'php7.0-fpm' : 'php5-fpm',
96-
VAGRNAT_PHP_ETC_DIR: box_config.flag?(:php7) ? '/etc/php/7.0/' : '/etc/php5/'
96+
VAGRNAT_PHP_ETC_DIR: box_config.flag?(:php7) ? '/etc/php/7.0/' : '/etc/php5/',
97+
VAGRNAT_PHP_PACKAGE_PREFIX: box_config.flag?(:php7) ? 'php7.0' : 'php5'
9798
}
9899
end
99100

vagrant/provisioning/profiler.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AS_USER="sudo -u ${VAGRANT_USER}"
66
CUR_DIR=$(pwd)
77
HOME_DIR=$(getent passwd ${VAGRANT_USER} | cut -d ':' -f6)
88

9-
apt-get install php-pear php5-dev graphviz build-essential -y -q
9+
apt-get install ${VAGRNAT_PHP_PACKAGE_PREFIX}-dev graphviz build-essential -y -q
1010

1111
[ -d $HOME_DIR/tideways-profiler ] || $AS_USER mkdir $HOME_DIR/tideways-profiler
1212
[ -d $HOME_DIR/tideways-profiler/.git ] || $AS_USER git clone https://github.com/tideways/php-profiler-extension.git $HOME_DIR/tideways-profiler

0 commit comments

Comments
 (0)