Update offsite-power-check.sh

This commit is contained in:
2024-02-05 18:47:43 -06:00
parent 7beb1625f9
commit 8f442260cc

View File

@@ -32,7 +32,7 @@ PWO_START(){
fi
# upsinfo=$(upsc CP1500PFCLCD)
upsinfo=$(upsc offsite-ups)
upsinfo=$(upsc offsite-ups 2>&1)
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')