update
This commit is contained in:
@@ -69,7 +69,7 @@ fi
|
||||
# RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||
|
||||
SENDNOTICE(){
|
||||
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
||||
if [ "${PW_PUSHOVER_APP_TOKEN}" != "" ]; then
|
||||
if [ "${TEST_INPUTACV}" != "" ] || [ "${TEST_BATTVOLT}" != "" ]; then
|
||||
PUSH_TO_MOBILE "***TEST MODE***
|
||||
|
||||
@@ -82,7 +82,7 @@ $(date)" "${1}" ${3} &
|
||||
$(date)" "${1}" ${3} &
|
||||
fi
|
||||
fi
|
||||
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${EMAIL_NOTICE}
|
||||
[ "${PW_EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${PW_EMAIL_NOTICE}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user