fix update

This commit is contained in:
wh1te909 2021-03-31 07:01:54 +00:00
parent 5e6c4161d0
commit 7dfd7bde8e
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ fi
HAS_NODE14=$(/usr/bin/node --version | grep v14)
if ! [[ $HAS_NODE14 ]]; then
printf >&2 "${GREEN}Updating NodeJS to v14${NC}\n"
rm -rf /rmm/web/node_modules
sudo systemctl stop meshcentral
sudo apt remove -y nodejs
sudo rm -rf /usr/lib/node_modules