Shinobi/UPDATE-v2-to-v3.sh

26 lines
486 B
Bash
Raw Permalink Normal View History

2022-06-06 20:31:21 +00:00
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 pull
rm -rf node_modules
npm install
echo "============="
echo "Restarting PM2..."
pm2 update
2022-06-07 23:44:55 +00:00
pm2 restart camera.js