From 9d4159a17098cdf023150a1a4c4642f9b56f69a3 Mon Sep 17 00:00:00 2001 From: liberodark Date: Thu, 22 Nov 2018 17:21:46 +0100 Subject: [PATCH] fix service --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6b33787..07d196c 100644 --- a/scripts/install +++ b/scripts/install @@ -159,11 +159,13 @@ ynh_add_nginx_config #ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service" #ynh_add_systemd_config +ynh_replace_string "__APP__" "$app" "../conf/systemd.service" +ynh_replace_string "__FINALPATH__" "$final_path" "../conf/systemd.service" ynh_replace_string "__NODEJS__" "$nodejs_use_version" "../conf/systemd.service" ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service" ynh_replace_string "__NODE__" "$nodejs_path" "../conf/systemd.service" cp ../conf/systemd.service /etc/systemd/system/$app.service -#ynh_add_systemd_config +ynh_add_systemd_config #================================================= # CREATE DEDICATED USER