Skip to content

Commit 172dda2

Browse files
committed
Trying to fix Mysqli check
1 parent 4d38073 commit 172dda2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

extensions/core/docker-install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ fi
1313

1414
if [ -n "$EXTENSION" ]; then
1515
set +e
16-
if apt-cache search --names-only "php${PHP_VERSION}-$EXTENSION" | grep "php${PHP_VERSION}-$EXTENSION"; then
16+
PACKAGE_NAME=${PACKAGE_NAME:-$EXTENSION}
17+
if apt-cache search --names-only "php${PHP_VERSION}-$PACKAGE_NAME" | grep "php${PHP_VERSION}-$PACKAGE_NAME"; then
1718
set -e
18-
apt-get install -y --no-install-recommends php${PHP_VERSION}-$EXTENSION
19+
apt-get install -y --no-install-recommends php${PHP_VERSION}-$PACKAGE_NAME
1920
else
2021
set -e
21-
apt-get install -y --no-install-recommends php-$EXTENSION
22+
apt-get install -y --no-install-recommends php-$PACKAGE_NAME
2223
fi
2324

2425
fi

extensions/core/mysqli/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
set -e
44
export EXTENSION=mysqli
5+
export PACKAGE_NAME=mysql
56

67
../docker-install.sh

0 commit comments

Comments
 (0)