From 6fecf64abfa8d3b529f3123876f3e703cfba26b9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 30 Jun 2021 22:48:39 +0200 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index fbf5186..3bfec36 100644 --- a/scripts/install +++ b/scripts/install @@ -153,9 +153,9 @@ 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 -systemctl enable mongod --quiet && systemctl restart mongod -mongo --eval "printjson(rs.initiate())" - +systemctl enable mongod && systemctl restart mongod +#mongo --eval "printjson(rs.initiate())" +mongo --eval "rs.initiate()" ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="➔ System ➔ startup" #=================================================