Skip to content

Instantly share code, notes, and snippets.

@DrJeff
Last active June 22, 2022 18:03
Show Gist options
  • Save DrJeff/f20f73f4a30f9ed265b40950fbd005b1 to your computer and use it in GitHub Desktop.
Save DrJeff/f20f73f4a30f9ed265b40950fbd005b1 to your computer and use it in GitHub Desktop.
Simple upgrade script for njsPC poolController
#! /bin/bash
# Simple Upgrade Script For njsPC Free To Use And Modify as you see fit
# @DrJeff
echo updating njsPC, dashpanel, and rem please wait...
echo updating poolController now ...
cd /home/pi/nodejs-poolController
git pull | tail -f | if grep -L "Already up to date." ; then
npm i
else
echo updating dashPanel ...
fi
cd /home/pi/nodejs-poolController-dashPanel
git pull | tail -f | if grep -L "Already up to date." ; then
npm i
else
echo updating REM ...
fi
cd /home/pi/relayEquipmentManager
git pull | tail -f | if grep -L "Already up to date." ; then
npm i
else
echo "All up to date, Completed for now!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment