This commit is contained in:
dami
2026-09-11 21:10:03 +08:00
parent aa317ee2f5
commit 370ff99134
18 changed files with 65 additions and 64 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ if [ ! -f $OP_BL ];then
touch $OP_BL
fi
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
apt install -y php${version}-${LIBNAME}
echo "ls ${ext_dir} | grep "${LIBNAME}.ini"| cut -d \ -f 1"
@@ -54,7 +54,7 @@ if [ "$actionType" == 'install' ];then
echo "opcache.save_comments=0" >> $ext_file
echo "opcache.blacklist_filename=${OP_BL}" >> $ext_file
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
rm -rf $ext_file
echo 'cannot uninstall'
fi
+13 -13
View File
@@ -24,33 +24,33 @@ LIBV=0
# fi
CMD='apt '
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
CMD="$CMD install -y php${version}-"
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
CMD="$CMD uninstall -y php${version}-"
fi
if [ "$version" == '5.6' ];then
if [ "$version" = '5.6' ];then
CMD="${CMD}phalcon3"
elif [[ "$version" == '7.0' ]]; then
elif [[ "$version" = '7.0' ]]; then
CMD="${CMD}phalcon3"
elif [[ "$version" == '7.1' ]]; then
elif [[ "$version" = '7.1' ]]; then
CMD="${CMD}phalcon3"
elif [[ "$version" == '7.2' ]]; then
elif [[ "$version" = '7.2' ]]; then
CMD="${CMD}phalcon4"
elif [[ "$version" == '7.3' ]]; then
elif [[ "$version" = '7.3' ]]; then
CMD="${CMD}phalcon3"
elif [[ "$version" == '7.4' ]]; then
elif [[ "$version" = '7.4' ]]; then
CMD="${CMD}phalcon4"
elif [[ "$version" == '8.0' ]]; then
elif [[ "$version" = '8.0' ]]; then
CMD="${CMD}phalcon5"
elif [[ "$version" == '8.1' ]]; then
elif [[ "$version" = '8.1' ]]; then
CMD="${CMD}phalcon5"
elif [[ "$version" == '8.2' ]]; then
elif [[ "$version" = '8.2' ]]; then
CMD="${CMD}phalcon5"
elif [[ "$version" == '8.3' ]]; then
elif [[ "$version" = '8.3' ]]; then
CMD="${CMD}phalcon5"
elif [[ "$version" == '8.4' ]]; then
elif [[ "$version" = '8.4' ]]; then
CMD="${CMD}phalcon5"
fi
+4 -4
View File
@@ -24,7 +24,7 @@ SG_VER=${version}
extVer=`bash $curPath/lib.sh $version`
extFile=/usr/lib/php/${extVer}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -41,7 +41,7 @@ Install_lib()
DEFAULT_OSNAME=linux-x86_64
SUFFIX_NAME=lin
if [ "$OSNAME" == 'macos' ];then
if [ "$OSNAME" = 'macos' ];then
DEFAULT_OSNAME=macosx
SUFFIX_NAME=dar
fi
@@ -116,8 +116,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -26,7 +26,7 @@ extFile=/usr/lib/php/${extVer}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -94,8 +94,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -30,7 +30,7 @@ extFile=/usr/lib/php/${extVer}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -98,8 +98,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi