diff --git a/scripts/install b/scripts/install index 40c33fb..a980c92 100644 --- a/scripts/install +++ b/scripts/install @@ -138,16 +138,16 @@ ynh_add_systemd_config ynh_script_progression --message="Configuring a mongod..." --weight=1 sed -i "s/^# engine:/ engine: wiredTiger/" /etc/mongod.conf -sed -i "s/^#replication:/replication:\n replSetName: \"rs01\"/" /etc/mongod.conf +sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf #echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet ynh_systemd_action --service_name=$mongodb_servicename --action=restart -#mongo --eval "printjson(rs.initiate())" - sleep 10 +mongo --eval "printjson(rs.initiate())" + #================================================= # GENERIC FINALIZATION #=================================================