mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update swoole.sh
This commit is contained in:
@@ -18,8 +18,26 @@ LIBNAME=swoole
|
||||
LIBV=4.8.10
|
||||
|
||||
|
||||
APT_INSTALL=0
|
||||
|
||||
if [ `echo "$version < 7.0"|bc` -eq 1 ];then
|
||||
LIBV=1.10.1
|
||||
elif [ `echo "$version < 7.2"|bc` -eq 1 ];then
|
||||
LIBV=4.5.2
|
||||
else
|
||||
echo 'ok'
|
||||
APT_INSTALL=1
|
||||
fi
|
||||
|
||||
|
||||
# to Apt
|
||||
if [ "$APT_INSTALL" == "1" ];then
|
||||
if [ "$actionType" == 'install' ];then
|
||||
apt install -y php${version}-${LIBNAME}
|
||||
elif [ "$actionType" == 'uninstall' ];then
|
||||
apt remove -y php${version}-${LIBNAME}
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user