File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,16 @@ if [ -n "$PECL_EXTENSION" ]; then
28
28
# if env ready?
29
29
30
30
# is phpize installed?
31
- if which pecl && which phpize; then
32
- echo " pecl found"
33
- which pecl
31
+ if which pickle && which phpize; then
32
+ echo " pickle found"
33
+ which pickle
34
34
else
35
35
apt-get install -y --no-install-recommends build-essential php-pear php${PHP_VERSION} -dev pkg-config
36
- which pecl
36
+ curl https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -o /usr/local/bin/pickle
37
+ chmod +x /usr/local/bin/pickle
37
38
fi
38
39
39
- pecl install $PECL_EXTENSION
40
+ pickle install $PECL_EXTENSION
40
41
echo " extension=${PHP_EXT_NAME:- ${PECL_EXTENSION} } .so" > /etc/php/${PHP_VERSION} /mods-available/${PHP_EXT_NAME:- ${PECL_EXTENSION} } .ini
41
42
# Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
42
43
# TODO: question: cannot we use /etc/php/mods-available instead???
Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ apt-get purge -y php-pear build-essential php${PHP_VERSION}-dev pkg-config
23
23
apt-get autoremove -y
24
24
apt-get clean
25
25
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
26
+ rm -f /usr/local/bin/pickle
You can’t perform that action at this time.
0 commit comments