From dfa72bfa00c64c2dd28569a4a3fbb41d8fa294c7 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 26 Jun 2022 20:53:36 +0200 Subject: [PATCH] switching to ynh_mongo_db__2 --- scripts/_common.sh | 42 ++++++++++++------------------------------ scripts/install | 12 ++++++++---- scripts/restore | 6 ++---- scripts/upgrade | 6 ++---- 4 files changed, 24 insertions(+), 42 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 3644475..9e784b7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -17,11 +17,8 @@ pkg_dependencies="apt-transport-https build-essential gzip curl fontconfig graph # EXPERIMENTAL HELPERS #================================================= -MONGO_DEBIAN_SERVICENAME="mongodb" MONGO_CE_SERVICENAME="mongod" -MONGO_DEBIAN_DEPENDENCIES="mongodb mongodb-server mongo-tools" -MONGO_CE_DEPENDENCIES="mongodb-org mongodb-org-server mongodb-org-tools" -MONGO_DEBIAN_CONFIG="/etc/mongodb.conf" +MONGO_CE_DEPENDENCIES="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" MONGO_CE_CONFIG="/etc/mongod.conf" MONGO_CE_REPO="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" MONGO_CE_KEY="https://www.mongodb.org/static/pgp/server-5.0.asc" @@ -110,7 +107,7 @@ ynh_mongo_exec() { database="" fi - mongo --quiet $user $password $authenticationdatabase $host $port <