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"