From 690f8ee51bd326d1327fa6c0ec2d1a9e48971ab6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 18 Sep 2021 19:44:48 +0200 Subject: [PATCH] Fix --- scripts/install | 3 +-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index b2e0d44..09eb7f1 100755 --- a/scripts/install +++ b/scripts/install @@ -103,8 +103,7 @@ ynh_script_progression --message="Installing $app..." --weight=2 pushd $final_path ynh_use_nodejs - #ynh_exec_as $app - ynh_exec_warn_less env $ynh_node_load_PATH npm install n8n -g --unsafe-perm + ynh_exec_warn_less env $ynh_node_load_PATH npm install n8n${n8n_version} --unsafe-perm popd chmod 750 "$final_path" diff --git a/scripts/restore b/scripts/restore index 2c637fb..0de7510 100755 --- a/scripts/restore +++ b/scripts/restore @@ -115,7 +115,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=8 -ynh_systemd_action --service_name=$app --action=restart --log_path=systemd #--line_match="" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Editor is now accessible via:" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 33dcfd1..5359fa5 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,7 +113,7 @@ yunohost service add $app --description="" --log="/var/log/$app/$app.log" #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=6 -ynh_systemd_action --service_name=$app --action=restart --log_path=systemd +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Editor is now accessible via:" #================================================= # RELOAD NGINX