1
0
Fork 0
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:
squeak 2021-09-15 23:00:43 +02:00
parent 5acfbe6c3c
commit d062d7b1ac

View file

@ -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