mirror of
https://github.com/YunoHost-Apps/dato_ynh.git
synced 2024-09-03 18:16:33 +02:00
Corrected upgrade script so that it upgrade properly dato node dependencies.
This commit is contained in:
parent
5acfbe6c3c
commit
d062d7b1ac
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ chown -R "$app":"$app" $final_path
|
|||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
# remove node_modules folder before upgrading (because dato dependencies need to be installed from scratch otherwise some dependencies are not properly upgraded)
|
||||
sudo -u $app env $ynh_node_load_PATH rm -r node_modules
|
||||
# reinstall dependencies from scratch
|
||||
sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in a new issue