From a4906b099362b8ab6dcc667a33f6e1f13625a47f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 15 May 2021 18:05:32 +0200 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 51357a2..162feb4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ -Environment="PATH=__ENV_PATH__" +Environment=__YNH_NODE_LOAD_PATH__ Environment="NODE_ENV=production" ExecStart=__YNH_NPM__ start TimeoutSec=60 diff --git a/scripts/install b/scripts/install index aa425da..49f3079 100755 --- a/scripts/install +++ b/scripts/install @@ -131,9 +131,6 @@ ynh_system_user_create --username=$app #================================================= 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_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" - # Create a dedicated systemd config ynh_add_systemd_config