diff --git a/plugins/mongodb/versions/3.0/centos.sh b/plugins/mongodb/versions/3.0/centos.sh index f37c30079..0c90f4e2a 100644 --- a/plugins/mongodb/versions/3.0/centos.sh +++ b/plugins/mongodb/versions/3.0/centos.sh @@ -60,7 +60,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/3.0/debian.sh b/plugins/mongodb/versions/3.0/debian.sh index c1430e703..a390c9b2e 100644 --- a/plugins/mongodb/versions/3.0/debian.sh +++ b/plugins/mongodb/versions/3.0/debian.sh @@ -39,7 +39,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/3.0/macos.sh b/plugins/mongodb/versions/3.0/macos.sh index 6de12db37..54598a804 100644 --- a/plugins/mongodb/versions/3.0/macos.sh +++ b/plugins/mongodb/versions/3.0/macos.sh @@ -23,7 +23,7 @@ if [ ! -d $MG_DIR/mongodb-macos-x86_64-${VERSION} ];then cd $MG_DIR && tar -zxvf mongodb-macos-x86_64-${VERSION}.tgz fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/3.0/opensuse.sh b/plugins/mongodb/versions/3.0/opensuse.sh index 218fe2a43..847a77345 100644 --- a/plugins/mongodb/versions/3.0/opensuse.sh +++ b/plugins/mongodb/versions/3.0/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/3.0/rhel.sh b/plugins/mongodb/versions/3.0/rhel.sh index 6ff26b7ea..93fc66752 100644 --- a/plugins/mongodb/versions/3.0/rhel.sh +++ b/plugins/mongodb/versions/3.0/rhel.sh @@ -36,7 +36,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/3.0/ubuntu.sh b/plugins/mongodb/versions/3.0/ubuntu.sh index b5870eeaa..2610134db 100644 --- a/plugins/mongodb/versions/3.0/ubuntu.sh +++ b/plugins/mongodb/versions/3.0/ubuntu.sh @@ -38,7 +38,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/centos.sh b/plugins/mongodb/versions/4.4/centos.sh index 7d79c8eeb..2129b4d82 100644 --- a/plugins/mongodb/versions/4.4/centos.sh +++ b/plugins/mongodb/versions/4.4/centos.sh @@ -60,7 +60,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/debian.sh b/plugins/mongodb/versions/4.4/debian.sh index 7bfebefac..4a5939d43 100644 --- a/plugins/mongodb/versions/4.4/debian.sh +++ b/plugins/mongodb/versions/4.4/debian.sh @@ -37,7 +37,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/macos.sh b/plugins/mongodb/versions/4.4/macos.sh index 1c2ff9a70..31c2b832f 100644 --- a/plugins/mongodb/versions/4.4/macos.sh +++ b/plugins/mongodb/versions/4.4/macos.sh @@ -22,7 +22,7 @@ if [ ! -d $MG_DIR/mongodb-macos-x86_64-${VERSION} ];then cd $MG_DIR && tar -zxvf mongodb-macos-x86_64-${VERSION}.tgz fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/opensuse.sh b/plugins/mongodb/versions/4.4/opensuse.sh index 016ba6cbb..5171db064 100644 --- a/plugins/mongodb/versions/4.4/opensuse.sh +++ b/plugins/mongodb/versions/4.4/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/rhel.sh b/plugins/mongodb/versions/4.4/rhel.sh index 6413d0639..57646001e 100644 --- a/plugins/mongodb/versions/4.4/rhel.sh +++ b/plugins/mongodb/versions/4.4/rhel.sh @@ -36,7 +36,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/4.4/ubuntu.sh b/plugins/mongodb/versions/4.4/ubuntu.sh index 4dd2b3423..c29a33d68 100644 --- a/plugins/mongodb/versions/4.4/ubuntu.sh +++ b/plugins/mongodb/versions/4.4/ubuntu.sh @@ -38,7 +38,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/5.0/centos.sh b/plugins/mongodb/versions/5.0/centos.sh index 4ecaf059f..4fa9e8bdd 100644 --- a/plugins/mongodb/versions/5.0/centos.sh +++ b/plugins/mongodb/versions/5.0/centos.sh @@ -47,7 +47,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/5.0/debian.sh b/plugins/mongodb/versions/5.0/debian.sh index bfc72cf2a..2a58e1980 100644 --- a/plugins/mongodb/versions/5.0/debian.sh +++ b/plugins/mongodb/versions/5.0/debian.sh @@ -37,7 +37,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/5.0/macos.sh b/plugins/mongodb/versions/5.0/macos.sh index 8f811860d..6237e4086 100644 --- a/plugins/mongodb/versions/5.0/macos.sh +++ b/plugins/mongodb/versions/5.0/macos.sh @@ -22,7 +22,7 @@ if [ ! -d $MG_DIR/mongodb-macos-x86_64-${VERSION} ];then cd $MG_DIR && tar -zxvf mongodb-macos-x86_64-${VERSION}.tgz fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/5.0/opensuse.sh b/plugins/mongodb/versions/5.0/opensuse.sh index af3e43044..6b31cef7d 100644 --- a/plugins/mongodb/versions/5.0/opensuse.sh +++ b/plugins/mongodb/versions/5.0/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/5.0/ubuntu.sh b/plugins/mongodb/versions/5.0/ubuntu.sh index 1b5ef0315..3cf59be1f 100644 --- a/plugins/mongodb/versions/5.0/ubuntu.sh +++ b/plugins/mongodb/versions/5.0/ubuntu.sh @@ -38,7 +38,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/6.0/centos.sh b/plugins/mongodb/versions/6.0/centos.sh index 8c836bb6c..6a0230bc6 100644 --- a/plugins/mongodb/versions/6.0/centos.sh +++ b/plugins/mongodb/versions/6.0/centos.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/6.0/debian.sh b/plugins/mongodb/versions/6.0/debian.sh index b0590596b..9db8e1825 100644 --- a/plugins/mongodb/versions/6.0/debian.sh +++ b/plugins/mongodb/versions/6.0/debian.sh @@ -37,7 +37,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/6.0/macos.sh b/plugins/mongodb/versions/6.0/macos.sh index ed763d4ce..b11db206c 100644 --- a/plugins/mongodb/versions/6.0/macos.sh +++ b/plugins/mongodb/versions/6.0/macos.sh @@ -22,7 +22,7 @@ if [ ! -d $MG_DIR/mongodb-macos-x86_64-${VERSION} ];then cd $MG_DIR && tar -zxvf mongodb-macos-x86_64-${VERSION}.tgz fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/6.0/opensuse.sh b/plugins/mongodb/versions/6.0/opensuse.sh index 5262433b3..33327a0c4 100644 --- a/plugins/mongodb/versions/6.0/opensuse.sh +++ b/plugins/mongodb/versions/6.0/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/6.0/ubuntu.sh b/plugins/mongodb/versions/6.0/ubuntu.sh index b754a49b8..3caddb560 100644 --- a/plugins/mongodb/versions/6.0/ubuntu.sh +++ b/plugins/mongodb/versions/6.0/ubuntu.sh @@ -38,7 +38,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/7.0/centos.sh b/plugins/mongodb/versions/7.0/centos.sh index ff808f549..c1c204408 100644 --- a/plugins/mongodb/versions/7.0/centos.sh +++ b/plugins/mongodb/versions/7.0/centos.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/7.0/debian.sh b/plugins/mongodb/versions/7.0/debian.sh index eb4623b3d..98ac54e29 100644 --- a/plugins/mongodb/versions/7.0/debian.sh +++ b/plugins/mongodb/versions/7.0/debian.sh @@ -42,7 +42,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];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 diff --git a/plugins/mongodb/versions/7.0/euler.sh b/plugins/mongodb/versions/7.0/euler.sh index ff808f549..c1c204408 100644 --- a/plugins/mongodb/versions/7.0/euler.sh +++ b/plugins/mongodb/versions/7.0/euler.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/7.0/macos.sh b/plugins/mongodb/versions/7.0/macos.sh index 5ae23731b..8ef2542e5 100644 --- a/plugins/mongodb/versions/7.0/macos.sh +++ b/plugins/mongodb/versions/7.0/macos.sh @@ -23,7 +23,7 @@ if [ ! -d $MG_DIR/mongodb-macos-x86_64-${VERSION} ];then cd $MG_DIR && tar -zxvf mongodb-macos-x86_64-${VERSION}.tgz fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/mongodb-macos-x86_64-${VERSION} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/7.0/opensuse.sh b/plugins/mongodb/versions/7.0/opensuse.sh index 22d1db08a..fcf5be2e2 100644 --- a/plugins/mongodb/versions/7.0/opensuse.sh +++ b/plugins/mongodb/versions/7.0/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/centos.sh b/plugins/mongodb/versions/8.0/centos.sh index c66fa6c31..b6cfdede9 100644 --- a/plugins/mongodb/versions/8.0/centos.sh +++ b/plugins/mongodb/versions/8.0/centos.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/debian.sh b/plugins/mongodb/versions/8.0/debian.sh index 556dcb41b..ab761f0c0 100644 --- a/plugins/mongodb/versions/8.0/debian.sh +++ b/plugins/mongodb/versions/8.0/debian.sh @@ -31,7 +31,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/euler.sh b/plugins/mongodb/versions/8.0/euler.sh index c66fa6c31..b6cfdede9 100644 --- a/plugins/mongodb/versions/8.0/euler.sh +++ b/plugins/mongodb/versions/8.0/euler.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/macos.sh b/plugins/mongodb/versions/8.0/macos.sh index 43b4ecbb4..ebfc49aa6 100644 --- a/plugins/mongodb/versions/8.0/macos.sh +++ b/plugins/mongodb/versions/8.0/macos.sh @@ -30,7 +30,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/opensuse.sh b/plugins/mongodb/versions/8.0/opensuse.sh index 6926dd1bc..ceebb02e2 100644 --- a/plugins/mongodb/versions/8.0/opensuse.sh +++ b/plugins/mongodb/versions/8.0/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.0/ubuntu.sh b/plugins/mongodb/versions/8.0/ubuntu.sh index 2a9230b05..30c5a7ca4 100644 --- a/plugins/mongodb/versions/8.0/ubuntu.sh +++ b/plugins/mongodb/versions/8.0/ubuntu.sh @@ -42,7 +42,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/centos.sh b/plugins/mongodb/versions/8.2/centos.sh index cc99c0833..ed1cae3f4 100644 --- a/plugins/mongodb/versions/8.2/centos.sh +++ b/plugins/mongodb/versions/8.2/centos.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/debian.sh b/plugins/mongodb/versions/8.2/debian.sh index 55f1c0c6d..8b2c405d2 100644 --- a/plugins/mongodb/versions/8.2/debian.sh +++ b/plugins/mongodb/versions/8.2/debian.sh @@ -31,7 +31,7 @@ if [ ! -d $MG_DIR/${FILE_NAME_TGZ} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/euler.sh b/plugins/mongodb/versions/8.2/euler.sh index cc99c0833..ed1cae3f4 100644 --- a/plugins/mongodb/versions/8.2/euler.sh +++ b/plugins/mongodb/versions/8.2/euler.sh @@ -53,7 +53,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/macos.sh b/plugins/mongodb/versions/8.2/macos.sh index 461ece36c..715115df0 100644 --- a/plugins/mongodb/versions/8.2/macos.sh +++ b/plugins/mongodb/versions/8.2/macos.sh @@ -30,7 +30,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/opensuse.sh b/plugins/mongodb/versions/8.2/opensuse.sh index 93e74b24f..c7d8e5524 100644 --- a/plugins/mongodb/versions/8.2/opensuse.sh +++ b/plugins/mongodb/versions/8.2/opensuse.sh @@ -40,7 +40,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi diff --git a/plugins/mongodb/versions/8.2/ubuntu.sh b/plugins/mongodb/versions/8.2/ubuntu.sh index af47fc832..8aa25abc9 100644 --- a/plugins/mongodb/versions/8.2/ubuntu.sh +++ b/plugins/mongodb/versions/8.2/ubuntu.sh @@ -42,7 +42,7 @@ if [ ! -d $MG_DIR/${FILE_NAME} ];then cd $MG_DIR && tar -zxvf ${FILE_NAME_TGZ} fi -if [ ! -d $serverPath/mongodb/bin ];then +if [ ! -f $serverPath/mongodb/bin/mongod ];then mkdir -p $serverPath/mongodb cd $MG_DIR/${FILE_NAME} && cp -rf ./bin $serverPath/mongodb fi