mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Merge pull request #35 from YunoHost-Apps/install-with-corepack
Install with corepack
This commit is contained in:
commit
babc2e7b4c
2 changed files with 8 additions and 7 deletions
|
@ -79,10 +79,10 @@ chown $app:$app "$install_dir/credentials.json"
|
|||
ynh_script_progression --message="Installing $app..." --weight=10
|
||||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less npm install pnpm -g
|
||||
#corepack enable && corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -97,12 +97,13 @@ chown $app:$app "$install_dir/credentials.json"
|
|||
#=================================================
|
||||
# INSTALL ETHERPAD
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing $app..." --weight=60
|
||||
ynh_script_progression --message="Installing $app..." --weight=10
|
||||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less npm install pnpm -g
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable
|
||||
ynh_exec_warn_less env $ynh_node_load_PATH corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue