Last active
June 22, 2022 18:03
-
-
Save DrJeff/f20f73f4a30f9ed265b40950fbd005b1 to your computer and use it in GitHub Desktop.
Simple upgrade script for njsPC poolController
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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