From b99bd5fded0a048ce3fa1a3aa0b932d99d47866e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 20 Jul 2024 00:56:16 +0800 Subject: [PATCH] Update install.sh --- plugins/php-yum/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/php-yum/install.sh b/plugins/php-yum/install.sh index 6eaa9e933..45a5cf6f3 100755 --- a/plugins/php-yum/install.sh +++ b/plugins/php-yum/install.sh @@ -40,6 +40,9 @@ bash ${rootPath}/scripts/getos.sh OSNAME=`cat ${rootPath}/data/osname.pl` VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` +if [ "$OSNAME" == "alma" ];then + rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm +fi if [ "$OSNAME" == "centos" ];then rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm @@ -82,6 +85,7 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install exif cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install intl cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mcrypt + cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install bcmath cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install openssl cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install gettext cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install redis