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

Fix modules upgrade

This commit is contained in:
Maniack Crudelis 2018-08-22 18:35:29 +02:00 committed by GitHub
parent 34a41539f1
commit 205f1e0bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,13 +158,13 @@ npm cache clean
ynh_exec_warn_less npm update)
# Then update the additionnal modules
(cd "$final_path"
npm cache clean
while read node_module
do
echo "Update $node_module"
(cd "$final_path/node_modules/$node_module"
npm cache clean
ynh_exec_warn_less npm update || true)
done <<< "$(ls -1 "$final_path/node_modules")"
ynh_exec_warn_less npm install --upgrade $node_module || true
done <<< "$(ls -1 "$final_path/node_modules" | grep "^ep_")")
#=================================================
# SPECIFIC UPGRADE