From 232c1ea0ce7bc95b2ba5532d31e68532185784d5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 30 Jun 2021 22:55:04 +0200 Subject: [PATCH] Update install --- scripts/install | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 3bfec36..aa958b8 100644 --- a/scripts/install +++ b/scripts/install @@ -149,13 +149,19 @@ yunohost service add $app --description="Team collaboration communication platfo #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=2 +ynh_script_progression --message="Starting a MongoDB service..." --weight=2 # Start a systemd service #ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd systemctl enable mongod && systemctl restart mongod -#mongo --eval "printjson(rs.initiate())" -mongo --eval "rs.initiate()" +mongo --eval "printjson(rs.initiate())" +#mongo --eval "rs.initiate()" + +#================================================= +# START SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Starting a systemd service..." --weight=2 + ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="➔ System ➔ startup" #=================================================