Update ubuntu.sh

This commit is contained in:
Mr Chen 2024-11-29 17:23:02 +08:00
parent d940a12ed5
commit bb6a64c0dc
1 changed files with 4 additions and 4 deletions

View File

@ -15,14 +15,14 @@ SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | a
SYS_NAME=${SYS_VERSION_ID/./}
# https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-4.4.23.tgz
if [ "$SYS_NAME" -gt "2204" ];then
SYS_NAME="2204"
fi
if [ "$SYS_NAME" -lt "2004" ];then
SYS_NAME="2004"
fi
if [ "$SYS_NAME" == "2204" ];then
SYS_NAME="2204"
fi
if [ "$SYS_NAME" == "2404" ];then
SYS_NAME="2404"
fi