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 #=================================================