mirror of
https://github.com/YunoHost-Apps/hedgedoc_ynh.git
synced 2024-09-03 19:25:52 +02:00
Cleanup yarn cache properly. (#70)
This commit is contained in:
parent
610e7bbd8d
commit
7770e966eb
2 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ ynh_script_progression --message="Building HedgeDoc... (this will take some time
|
|||
pushd "$install_dir"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn workspaces focus --production
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -94,6 +94,7 @@ then
|
|||
ynh_secure_remove /usr/local/share/.cache/yarn
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn workspaces focus --production
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue