1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/iceshrimp_ynh.git synced 2024-09-03 19:15:54 +02:00

Fixed upgrade and restore.

This commit is contained in:
Mateusz 2024-05-12 15:35:21 +02:00 committed by Félix Piédallu
parent 3b646c8ed2
commit 2a7780ca0a
2 changed files with 6 additions and 6 deletions

View file

@ -39,9 +39,9 @@ ynh_script_progression --message="Reinstalling yarn..." --weight=1
# Define and install yarn
pushd "$install_dir"
ynh_use_nodejs
corepack enable
corepack prepare --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
env $ynh_node_load_PATH corepack enable
env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build
popd

View file

@ -97,9 +97,9 @@ ynh_script_progression --message="Building app..."
pushd "$install_dir"
ynh_use_nodejs
corepack enable
corepack prepare --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cleanall
env $ynh_node_load_PATH corepack enable
env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn cleanall
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn migrate