diff --git a/scripts/install b/scripts/install index a827f24..55f6106 100644 --- a/scripts/install +++ b/scripts/install @@ -165,7 +165,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log" #================================================= -# START SYSTEMD SERVICE +# START MONGO SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a MongoDB service..." --weight=2 @@ -178,7 +178,7 @@ ynh_systemd_action --service_name=$mongodb_servicename --action=restart #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="Started The Rocket.Chat server" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd sleep 120 #================================================= diff --git a/scripts/restore b/scripts/restore index edf08ba..95372e4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -126,14 +126,22 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log" +#================================================= +# START MONGO SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Starting a MongoDB service..." --weight=2 + +# Start a mongod service +ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet +ynh_systemd_action --service_name=$mongodb_servicename --action=restart + #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=5 -# Start a mongod service -ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet ynh_systemd_action --service_name=$app --action="start" --log_path=systemd +sleep 120 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 556d805..7f1d628 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -160,7 +160,6 @@ ynh_use_logrotate --non-append ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log" -sleep 120 #================================================= # START SYSTEMD SERVICE @@ -169,6 +168,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=10 ynh_systemd_action --service_name=$mongodb_servicename --action=restart --log_path=systemd ynh_systemd_action --service_name=$app --action=start --log_path=systemd +sleep 120 #================================================= # RELOAD NGINX