From a82af051ead27ff6384ac0a8f4b98a0b288c3877 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 3 Jan 2022 16:03:06 +0100 Subject: [PATCH] Fix --- conf/systemd.service | 2 +- scripts/install | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index d3aa0ca..b78cfdb 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -Environment="PATH=__ENV_PATH__" +Environment="__YNH_NODE_LOAD_PATH__" Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" Environment="NODE_ENV=production" ExecStart==__YNH_NODE__ start diff --git a/scripts/install b/scripts/install index 05ed6a2..dd80280 100644 --- a/scripts/install +++ b/scripts/install @@ -136,7 +136,6 @@ popd #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" ynh_add_systemd_config #=================================================