1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
Éric Gaspar 2024-04-06 11:15:21 +02:00
parent f7192086ea
commit 8c45ae737e
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,8 @@ WorkingDirectory=__INSTALL_DIR__/
Environment=ETHERPAD_PRODUCTION=true Environment=ETHERPAD_PRODUCTION=true
Environment="NODE_ENV=production" Environment="NODE_ENV=production"
Environment="__YNH_NODE_LOAD_PATH__" 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 Restart=always
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -84,6 +84,7 @@ ynh_script_progression --message="Installing $app..." --weight=10
pushd $install_dir pushd $install_dir
ynh_use_nodejs 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 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true src/bin/installDeps.sh
popd popd