fix typo
This commit is contained in:
parent
1ee42cbb45
commit
9aedaaba1a
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ remaining_runtime=$(apcaccess status 2>/dev/null | awk '/TIMELEFT/ {print $3}')
|
||||||
ups_hostname=$(hostname)
|
ups_hostname=$(hostname)
|
||||||
|
|
||||||
# Check if UPS is online and send an email if necessary
|
# 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."
|
echo "APC UPS is online. Sending email notification."
|
||||||
|
|
||||||
# Send email using ssmtp
|
# Send email using ssmtp
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue