Update UPDATE.sh
parent
084382882c
commit
d0f6c619fc
28
UPDATE.sh
28
UPDATE.sh
|
@ -1,6 +1,26 @@
|
|||
echo "============="
|
||||
echo "Updating Node.js to version 16..."
|
||||
wget https://deb.nodesource.com/setup_16.x
|
||||
chmod +x setup_16.x
|
||||
./setup_16.x
|
||||
apt install nodejs -y
|
||||
apt install node-pre-gyp -y
|
||||
rm setup_16.x
|
||||
npm i npm -g
|
||||
|
||||
echo "============="
|
||||
echo "Updating PM2..."
|
||||
npm install pm2@latest -g
|
||||
|
||||
echo "============="
|
||||
echo "Updating Shinobi dependencies..."
|
||||
git reset --hard
|
||||
git checkout dev
|
||||
git pull
|
||||
npm install --unsafe-perm
|
||||
# npm audit fix --force
|
||||
# pm2 restart camera
|
||||
# pm2 restart cron
|
||||
rm -rf node_modules
|
||||
npm install
|
||||
|
||||
echo "============="
|
||||
echo "Restarting PM2..."
|
||||
pm2 update
|
||||
pm2 restart camera.js
|
||||
|
|
Loading…
Reference in New Issue