installDeps.sh: don't nuke all installed plugins on update

This is a modification of PR #3474 by rohieb <rohieb@rohieb.name>.

When this script is run after an update, and something fails during the npm
run, the installed plugins were deleted, too.

In this version what gets deleted is only the directory that contains the
direct dependencies of the core Etherpad, ie:
  node_modules/ep_etherpad-lite/node_modules
This commit is contained in:
muxator 2018-08-29 21:45:33 +02:00
parent 727fbc2669
commit c09e638fc3
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ echo "Ensure that all dependencies are up to date... If this is the first time
cd ep_etherpad-lite
npm install --no-save --loglevel warn
) || {
rm -rf node_modules
rm -rf src/node_modules
exit 1
}