appstore-1panel/apps/php5/5.5.38/build/php/extensions/install.sh

26 lines
651 B
Bash
Raw Normal View History

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
IFS=','
for ext in $PHP_EXTENSIONS; do
echo "开始安装 $ext..."
install-php-extensions $ext
2023-04-09 10:55:06 +08:00
if [ $? -eq 0 ]; then
echo "$ext 安装成功!"
2023-04-09 10:55:06 +08:00
else
echo "$ext 安装失败!"
2023-04-09 10:55:06 +08:00
fi
done
unset IFS