From eb1429e979c8e5f2be53a001c28e100c90968b02 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 11 Jun 2022 10:07:03 +0200 Subject: [PATCH] remove env_path --- conf/systemd.service | 4 ++-- scripts/install | 2 +- scripts/upgrade | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 1e5b3bb..2767e22 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,9 +6,9 @@ After=network.target remote-fs.target nss-lookup.target nginx.service __MONGODB_ [Service] User=__APP__ Group=__APP__ -WorkingDirectory=__FINALPATH__ -Environment="PATH=__ENV_PATH__" Environment="NODE_ENV=production" +WorkingDirectory=__FINALPATH__/ +Environment="__YNH_NODE_LOAD_PATH__" ExecStart=__YNH_NODE__ __FINALPATH__/main.js StandardOutput=syslog StandardError=syslog diff --git a/scripts/install b/scripts/install index 36b4392..de4b421 100644 --- a/scripts/install +++ b/scripts/install @@ -132,7 +132,7 @@ popd #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -env_path="$PATH" +# Create a dedicated systemd config ynh_add_systemd_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 28e37e6..5c20a5b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,7 +130,6 @@ popd #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 -env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config