This commit is contained in:
dami
2026-07-20 23:45:15 +08:00
parent 7c3ebc6e35
commit 87123c526a
4 changed files with 21 additions and 6 deletions
+5
View File
@@ -11,6 +11,11 @@ serverPath=$(dirname "$rootPath")
VERSION=3.0.15
SYS_ARCH=`arch`
if [ "$SYS_ARCH" != "x86_64" ];then
echo "no support"
exit 0
fi
SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
SYS_NAME=${SYS_VERSION_ID/./}
SYS_NAME_LEN=`echo "$SYS_NAME" | wc -L`
+6
View File
@@ -11,6 +11,12 @@ serverPath=$(dirname "$rootPath")
# https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.15.tgz
VERSION=3.0.15
SYS_ARCH=`arch`
if [ "$SYS_ARCH" != "x86_64" ];then
echo "no support"
exit 0
fi
SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
SYS_NAME=${SYS_VERSION_ID/./}
+5
View File
@@ -11,6 +11,11 @@ serverPath=$(dirname "$rootPath")
VERSION=3.0.15
SYS_ARCH=`arch`
if [ "$SYS_ARCH" != "x86_64" ];then
echo "no support"
exit 0
fi
SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}' | awk -F . '{print $1}'`
SYS_NAME="15"
+5 -6
View File
@@ -11,6 +11,11 @@ serverPath=$(dirname "$rootPath")
VERSION=3.0.15
SYS_ARCH=`arch`
if [ "$SYS_ARCH" != "x86_64" ];then
echo "no support"
exit 0
fi
SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
SYS_NAME=${SYS_VERSION_ID/./}
# https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-4.4.23.tgz
@@ -26,12 +31,6 @@ fi
MG_DIR=$serverPath/source/mongodb
mkdir -p $MG_DIR
if [ "$SYS_ARCH" != "x86_64" ];then
echo "no support"
exit 0
fi
FILE_NAME=mongodb-linux-${SYS_ARCH}-${VERSION}
FILE_NAME_TGZ=${FILE_NAME}.tgz