Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-31 18:56:49 -06:00
parent 9662f13690
commit ff98b61c1d

View File

@@ -165,7 +165,7 @@ STATUS(){
fi
if [ "${checkhost}" != "false" ]; then
if [ "${ST_ACTION}" != "check" ]; then
if [ "${ST_ACTION}" = "report" ] && [ "${2}" = "email" ]; then
if [ "${ST_ACTION}" = "report" ] && [ "${2}" != "email" ]; then
uptime=`${NCMD} uptime -p`
elif [ "${ST_ACTION}" != "report" ]; then
uptime=`${NCMD} uptime -p`