From 2ccc2dd6c456714daedd4d6fdb2722ed96f1d127 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 18 Sep 2021 22:24:48 +0200 Subject: [PATCH] Fix --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index dc3a850..384c285 100755 --- a/scripts/install +++ b/scripts/install @@ -156,7 +156,7 @@ ynh_add_systemd_config #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=3 -yunohost service add $app --description="" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Workflow Automation Tool" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 0de7510..4de43ee 100755 --- a/scripts/restore +++ b/scripts/restore @@ -100,7 +100,7 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=3 -yunohost service add $app --description="" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Workflow Automation Tool" --log="/var/log/$app/$app.log" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index fd81123..3f8ff5a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,7 +71,7 @@ then # Download, check integrity, uncompress and patch the source from app.src pushd $final_path ynh_use_nodejs - ynh_exec_as $app env $ynh_node_load_PATH npm install n8n@${n8n_version} + ynh_exec_warn_less env $ynh_node_load_PATH npm install n8n@${n8n_version} popd fi @@ -99,6 +99,7 @@ ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 +ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" # Create a dedicated systemd config ynh_add_systemd_config @@ -107,7 +108,7 @@ ynh_add_systemd_config #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 -yunohost service add $app --description="" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Workflow Automation Tool" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE