From 6cb09f68b11d342387442ecf173667fd0db6fa25 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 14 Nov 2021 10:10:59 +0100 Subject: [PATCH] Fix --- conf/mongod.conf | 2 +- scripts/install | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/mongod.conf b/conf/mongod.conf index 4bedf87..1ff3dbd 100644 --- a/conf/mongod.conf +++ b/conf/mongod.conf @@ -33,7 +33,7 @@ processManagement: #operationProfiling: replication: - replSetName: "rs01" + replSetName: rs01 #sharding: diff --git a/scripts/install b/scripts/install index 28d623f..c7efae0 100644 --- a/scripts/install +++ b/scripts/install @@ -145,7 +145,9 @@ ynh_systemd_action --service_name=$mongodb_servicename --action=restart sleep 10 -mongo --eval "printjson(rs.initiate())" +#mongo --eval "printjson(rs.initiate())" + +ynh_mongo_exec --command="printjson(rs.initiate())" --eval #================================================= # GENERIC FINALIZATION