From 9aedaaba1a517bfc166d67f2f0226ec294a44f84 Mon Sep 17 00:00:00 2001 From: DIVISIONSolar Date: Sun, 20 Aug 2023 21:48:25 -0400 Subject: [PATCH] fix typo --- email/scripts/onpower.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email/scripts/onpower.sh b/email/scripts/onpower.sh index 5845b2a..3705d11 100644 --- a/email/scripts/onpower.sh +++ b/email/scripts/onpower.sh @@ -12,7 +12,7 @@ remaining_runtime=$(apcaccess status 2>/dev/null | awk '/TIMELEFT/ {print $3}') ups_hostname=$(hostname) # Check if UPS is online and send an email if necessary -if [ "$status" != "ONLINE" ]; then +if [ "$status" != "OFFLINE" ]; then echo "APC UPS is online. Sending email notification." # Send email using ssmtp