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