1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dato_ynh.git synced 2024-09-03 18:16:33 +02:00

Stop using "rm -r" and use "ynh_secure_remove" helper.

This commit is contained in:
squeak 2021-09-19 15:20:11 +02:00
parent 2d1fdb439f
commit b5396956dc

View file

@ -110,7 +110,7 @@ chown -R "$app":"$app" $final_path
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs 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) # 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 ynh_secure_remove --file="./node_modules"
# reinstall dependencies from scratch # reinstall dependencies from scratch
sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn
popd popd