From 8c45ae737e0712d17e9c7120c8ea5f804f3de7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:15:21 +0200 Subject: [PATCH] fix --- conf/systemd.service | 3 ++- scripts/install | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index e419287..71e125b 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,7 +10,8 @@ WorkingDirectory=__INSTALL_DIR__/ Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__INSTALL_DIR__/src/bin/run.sh +#ExecStart=__INSTALL_DIR__/src/bin/run.sh +ExecStart=pnpm --filter ep_etherpad-lite run prod Restart=always # Sandboxing options to harden security diff --git a/scripts/install b/scripts/install index ea12af5..a51d454 100644 --- a/scripts/install +++ b/scripts/install @@ -84,6 +84,7 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -g pnpm ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true src/bin/installDeps.sh popd