diff --git a/plugins/mongodb/versions/7.0/ubuntu.sh b/plugins/mongodb/versions/7.0/ubuntu.sh index 2b3469110..c29426917 100644 --- a/plugins/mongodb/versions/7.0/ubuntu.sh +++ b/plugins/mongodb/versions/7.0/ubuntu.sh @@ -39,7 +39,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin/mongod ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi