Skip to content

Commit

Permalink
Update openssl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 3, 2025
1 parent 3bef89d commit bb72b53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/php/versions/common/openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ fi

Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi

if [ ! -f "$extFile" ];then
echo "locked" > $extFile
fi

echo "" >> $serverPath/php/$version/etc/php.ini
echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini
Expand Down

0 comments on commit bb72b53

Please sign in to comment.