Update run.sh

This commit is contained in:
2024-08-27 21:51:24 -05:00
parent 92f8b13dc8
commit fb2d6a9bf6

3
run.sh
View File

@@ -6,6 +6,9 @@ source /opt/idssys/defaults/default.inc
source /opt/idssys/powerwall/defaults.inc
if [ "${1}" == "update" ]; then
if [ "${2}" == "-a" ] || [ "${2}" == "all" ]; then
echo -e "${idsCL[White]}Updating the Mainsite Monitor...${idsCL[Default]}"
fi
if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
if [ "${2}" != "q" ]; then
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"