|
|
|
@ -65,3 +65,27 @@ 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}.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} |
|
|
|
|
|
|
|
|
|