From 99a0950ed5e0a6e1a8ee1ced051a014b975ad821 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 9 Dec 2021 08:43:37 +0100 Subject: [PATCH] Fix --- conf/systemd.service | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 4d5d868..d3aa0ca 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,7 +10,7 @@ WorkingDirectory=__FINALPATH__/ Environment="PATH=__ENV_PATH__" Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" Environment="NODE_ENV=production" -ExecStart==__FINALPATH__/ thelounge start +ExecStart==__YNH_NODE__ start Restart=on-failure RestartSec=5 StartLimitInterval=60s diff --git a/scripts/install b/scripts/install index 9d0de4d..dc36faf 100644 --- a/scripts/install +++ b/scripts/install @@ -128,6 +128,7 @@ pushd $final_path ynh_use_nodejs #ynh_exec_as $app env $ynh_node_load_PATH ynh_exec_warn_less $ynh_npm install --global --unsafe-perm thelounge + ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" thelounge start popd #=================================================