From 28f5af81483fd3cbd0784a3aea9746e41b88e19b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 30 Oct 2021 21:20:44 +0200 Subject: [PATCH] Update install --- scripts/install | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/scripts/install b/scripts/install index e7e7d29..210a1c7 100644 --- a/scripts/install +++ b/scripts/install @@ -163,21 +163,6 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2 # Create a dedicated systemd config ynh_add_systemd_config -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 - -yunohost service add $app --description="Collaboration platform built for developers" --log="/var/log/$app/$app.log" - -#================================================= -# START SYSTEMD SERVICE -#================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=2 - -# Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" - #================================================= # CREATE ADMIN AND FIRST TEAM #================================================= @@ -194,7 +179,21 @@ popd # Now that the first user is created, disable mmctl passwordless access ynh_replace_string 'EnableLocalMode": true' '"EnableLocalMode": false' "$final_path/config/config.json" -ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Started Mattermost" + +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 + +yunohost service add $app --description="Collaboration platform built for developers" --log="/var/log/$app/$app.log" + +#================================================= +# START SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Starting a systemd service..." --weight=2 + +# Start a systemd service +ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" #================================================= # SETUP SSOWAT