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