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:
parent
3b646c8ed2
commit
2a7780ca0a
2 changed files with 6 additions and 6 deletions
|
@ -39,9 +39,9 @@ ynh_script_progression --message="Reinstalling yarn..." --weight=1
|
||||||
# Define and install yarn
|
# Define and install yarn
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
corepack enable
|
env $ynh_node_load_PATH corepack enable
|
||||||
corepack prepare --activate
|
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 yarn install
|
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
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -97,9 +97,9 @@ ynh_script_progression --message="Building app..."
|
||||||
|
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
corepack enable
|
env $ynh_node_load_PATH corepack enable
|
||||||
corepack prepare --activate
|
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 yarn cleanall
|
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 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 NODE_ENV=production yarn build
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn migrate
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn migrate
|
||||||
|
|
Loading…
Reference in a new issue