From 58a25cfc070dc1bff579fa8892b06d083da095e0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 31 Aug 2021 12:36:43 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 3 ++- scripts/install | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 6b972b0..f1b16d5 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,7 +10,8 @@ Environment="PORT=__PORT__" Environment="PATH=__ENV_PATH__" Environment="NODE_ENV=production" WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__ start +ExecStart=__YNH_NODE__ bin/wwww +#start Restart=always [Install] diff --git a/scripts/install b/scripts/install index c0005f3..51894a6 100644 --- a/scripts/install +++ b/scripts/install @@ -145,7 +145,7 @@ ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db ynh_script_progression --message="Configuring a systemd service..." ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +ynh_replace_string --match_string="__YNH_NODE__" --replace_string="$ynh_node" --target_file="../conf/systemd.service" ynh_add_systemd_config #=================================================