diff --git a/scripts/backup b/scripts/backup index 09fc3d1..821ad88 100644 --- a/scripts/backup +++ b/scripts/backup @@ -8,7 +8,7 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh -source ../settings/scripts/ynh_mongo_db +source ../settings/scripts/ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/install b/scripts/install index 3e2f01d..de6d01b 100644 --- a/scripts/install +++ b/scripts/install @@ -7,7 +7,7 @@ #================================================= source _common.sh -source ynh_mongo_db +source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/remove b/scripts/remove index 3e232b9..0a3323a 100755 --- a/scripts/remove +++ b/scripts/remove @@ -7,7 +7,7 @@ #================================================= source _common.sh -source ynh_mongo_db +source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/restore b/scripts/restore index f10a08a..c5ca449 100644 --- a/scripts/restore +++ b/scripts/restore @@ -8,7 +8,7 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh -source ../settings/scripts/ynh_mongo_db +source ../settings/scripts/ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7147009..e240fa9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,7 +7,7 @@ #================================================= source _common.sh -source ynh_mongo_db +source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/ynh_mongo_db b/scripts/ynh_mongo_db__2 similarity index 84% rename from scripts/ynh_mongo_db rename to scripts/ynh_mongo_db__2 index cca1338..44b7bb6 100644 --- a/scripts/ynh_mongo_db +++ b/scripts/ynh_mongo_db__2 @@ -1,13 +1,10 @@ #!/bin/bash -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/4.4 main" -MONGO_CE_KEY="https://www.mongodb.org/static/pgp/server-4.4.asc" +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" # Execute a mongo command # @@ -93,7 +90,7 @@ ynh_mongo_exec() { database="" fi - mongo --quiet $user $password $authenticationdatabase $host $port <