2023-04-09 10:55:06 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "============================================"
|
|
|
|
echo "Install extensions from : install.sh"
|
|
|
|
echo "PHP version : ${PHP_VERSION}"
|
|
|
|
echo "Extra Extensions : ${PHP_EXTENSIONS}"
|
|
|
|
echo "Multicore Compilation : ${MC}"
|
|
|
|
echo "Container package url : ${CONTAINER_PACKAGE_URL}"
|
|
|
|
echo "Work directory : ${PWD}"
|
|
|
|
echo "============================================"
|
|
|
|
echo
|
|
|
|
|
2023-09-12 12:54:19 +08:00
|
|
|
IFS=','
|
|
|
|
for ext in $PHP_EXTENSIONS; do
|
|
|
|
echo "开始安装 $ext..."
|
|
|
|
install-php-extensions $ext
|
2023-04-09 10:55:06 +08:00
|
|
|
|
2023-09-12 12:54:19 +08:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo "$ext 安装成功!"
|
2023-04-09 10:55:06 +08:00
|
|
|
else
|
2023-09-12 12:54:19 +08:00
|
|
|
echo "$ext 安装失败!"
|
2023-04-09 10:55:06 +08:00
|
|
|
fi
|
2023-09-12 12:54:19 +08:00
|
|
|
done
|
|
|
|
unset IFS
|