|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
#!/bin/bash |
|
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin |
|
|
|
|
export PATH |
|
|
|
|
export PATH=$PATH:/opt/homebrew/bin |
|
|
|
|
|
|
|
|
|
curPath=`pwd` |
|
|
|
|
|
|
|
|
@ -63,7 +63,7 @@ Install_lib() |
|
|
|
|
echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini |
|
|
|
|
echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini |
|
|
|
|
|
|
|
|
|
bash ${rootPath}/plugins/php/versions/lib.sh $version restart |
|
|
|
|
cd ${curPath} && bash ${rootPath}/plugins/php/versions/lib.sh $version restart |
|
|
|
|
echo '===========================================================' |
|
|
|
|
echo 'successful!' |
|
|
|
|
} |
|
|
|
@ -87,7 +87,7 @@ Uninstall_lib() |
|
|
|
|
sed -i $BAK "/${LIBNAME}/d" $serverPath/php/$version/etc/php.ini |
|
|
|
|
|
|
|
|
|
rm -f $extFile |
|
|
|
|
bash ${rootPath}/plugins/php/versions/lib.sh $version restart |
|
|
|
|
cd ${curPath} && bash ${rootPath}/plugins/php/versions/lib.sh $version restart |
|
|
|
|
echo '===============================================' |
|
|
|
|
echo 'successful!' |
|
|
|
|
} |
|
|
|
|