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:
parent
2d1fdb439f
commit
b5396956dc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue