From 8e08f4838c71136defa16cc7e321ce1414077452 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 9 Jul 2021 07:45:12 +0200 Subject: [PATCH] Fix --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 009ebaa..982a73b 100644 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,7 @@ ynh_add_config --template="../conf/config.conf.example" --destination="$webircga #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log" +yunohost service add $app --description="A versatile web based messenger using IRC" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index f7e67a2..f294e8c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -79,7 +79,7 @@ systemctl enable $app.service #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log" +yunohost service add $app --description="A versatile web based messenger using IRC" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index f64216c..5d0062e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -108,6 +108,21 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 + +yunohost service add $app --description="A versatile web based messenger using IRC" --log="/var/log/$app/$app.log" + +#================================================= +# START SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Starting a systemd service..." --weight=1 + +# Start a systemd service +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" + #================================================= # RELOAD NGINX #=================================================