From 047ff54852b19b8420594a04fd80e15293a0383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:02:13 +0100 Subject: [PATCH] fix node path --- conf/systemd.service | 2 +- scripts/install | 1 - scripts/upgrade | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index a8498bc..38448d4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__ -Environment=PATH=__ENV_PATH__ +Environment=PATH=__YNH_NODE_LOAD_PATH__ Environment=NODE_ENV=production ExecStart=__YNH_NPM__ start Restart=always diff --git a/scripts/install b/scripts/install index 273c164..656b228 100644 --- a/scripts/install +++ b/scripts/install @@ -68,7 +68,6 @@ ynh_script_progression --message="Adding system configurations related to $app.. # Create a dedicated NGINX config ynh_add_nginx_config -env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config diff --git a/scripts/upgrade b/scripts/upgrade index c7750d4..6b8deb6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,7 +94,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -env_path="$PATH" ynh_add_systemd_config yunohost service add $app --description="Zero Knowledge realtime collaborative editor" --log="/var/log/$app/$app.log"