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