diff --git a/plugins/mongodb/versions/3.0/centos.sh b/plugins/mongodb/versions/3.0/centos.sh index 3c10f1a0a..7c52b7c38 100644 --- a/plugins/mongodb/versions/3.0/centos.sh +++ b/plugins/mongodb/versions/3.0/centos.sh @@ -65,46 +65,4 @@ if [ ! -d $serverPath/mongodb/bin ];then cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi -cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} - -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} - -#--------------- mongodb database install ------------------ # -TOOL_VERSION=100.9.4 -TOOL_FILE_NAME=mongodb-database-tools-rhel${SYS_NAME}-x86_64-${TOOL_VERSION} -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-rhel${SYS_NAME}-aarch64-${TOOL_VERSION} -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-rhel${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ} -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} +cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} \ No newline at end of file diff --git a/plugins/mongodb/versions/3.0/debian.sh b/plugins/mongodb/versions/3.0/debian.sh index 24008b150..e9cf34b75 100644 --- a/plugins/mongodb/versions/3.0/debian.sh +++ b/plugins/mongodb/versions/3.0/debian.sh @@ -44,45 +44,5 @@ fi cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} - - -#--------------- mongodb database install ------------------ # -TOOL_VERSION=100.9.4 -TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-x86_64-${TOOL_VERSION} -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ} -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} diff --git a/plugins/mongodb/versions/3.0/macos.sh b/plugins/mongodb/versions/3.0/macos.sh index 153b9390b..437dc18f9 100644 --- a/plugins/mongodb/versions/3.0/macos.sh +++ b/plugins/mongodb/versions/3.0/macos.sh @@ -26,51 +26,3 @@ if [ ! -d $serverPath/mongodb/bin ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi - -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64 -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && unzip ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} - -#--------------- mongodb-database-tools ------------------ # -# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.9.4.zip -TOOL_VERSION=100.9.4 -TOOL_FILE_NAME=mongodb-database-tools-macos-x86_64-${TOOL_VERSION} -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION} -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION} -fi - -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && unzip ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} \ No newline at end of file diff --git a/plugins/mongodb/versions/3.0/opensuse.sh b/plugins/mongodb/versions/3.0/opensuse.sh index 64ffcac37..18d0a3442 100644 --- a/plugins/mongodb/versions/3.0/opensuse.sh +++ b/plugins/mongodb/versions/3.0/opensuse.sh @@ -46,47 +46,3 @@ if [ ! -d $serverPath/mongodb/bin ];then fi cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} - -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} - - -# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-suse12-x86_64-100.9.4.tgz -#--------------- mongodb database install ------------------ # -TOOL_VERSION=100.9.4 -TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-x86_64-${TOOL_VERSION} -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ} -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} \ No newline at end of file diff --git a/plugins/mongodb/versions/3.0/rhel.sh b/plugins/mongodb/versions/3.0/rhel.sh index 1f8210b22..2c556593d 100644 --- a/plugins/mongodb/versions/3.0/rhel.sh +++ b/plugins/mongodb/versions/3.0/rhel.sh @@ -41,23 +41,4 @@ if [ ! -d $serverPath/mongodb/bin ];then cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi -cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} - -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} \ No newline at end of file +cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} \ No newline at end of file diff --git a/plugins/mongodb/versions/3.0/ubuntu.sh b/plugins/mongodb/versions/3.0/ubuntu.sh index 5eac1b70f..1e77eb1ea 100644 --- a/plugins/mongodb/versions/3.0/ubuntu.sh +++ b/plugins/mongodb/versions/3.0/ubuntu.sh @@ -44,46 +44,3 @@ if [ ! -d $serverPath/mongodb/bin ];then fi cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME} - -#--------------- mongosh tool install ------------------ # -TOOL_VERSION=2.2.5 -TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64 -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64 -fi -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ} - echo "wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://downloads.mongodb.com/compass/${TOOL_FILE_NAME_TGZ}" -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} - -# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.9.4.tgz -#--------------- mongodb database install ------------------ # -TOOL_VERSION=100.9.4 -TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-x86_64-${TOOL_VERSION} -if [ "aarch64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -if [ "arm64" == ${SYS_ARCH} ];then - TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION} -fi - -TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz -if [ ! -f $MG_DIR/${TOOL_FILE_NAME_TGZ} ]; then - wget --no-check-certificate -O $MG_DIR/${TOOL_FILE_NAME_TGZ} https://fastdl.mongodb.org/tools/db/${TOOL_FILE_NAME_TGZ} -fi - -if [ ! -d $MG_DIR/${TOOL_FILE_NAME_TGZ} ];then - cd $MG_DIR && tar -zxvf ${TOOL_FILE_NAME_TGZ} -fi - -cd ${MG_DIR}/${TOOL_FILE_NAME} && cp -rf ./bin $serverPath/mongodb -cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME} \ No newline at end of file