diff --git a/scripts/install b/scripts/install index 055200b..896a9b2 100644 --- a/scripts/install +++ b/scripts/install @@ -150,9 +150,11 @@ yunohost service add $app --description="Team collaboration communication platfo ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd +ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd + +mongo --eval "printjson(rs.initiate())" + ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="➔ System ➔ startup" -sleep 120 #================================================= # SETUP SSOWAT