Update status.inc
This commit is contained in:
@@ -171,7 +171,6 @@ STATUS(){
|
||||
# echo "HERE: $checkhost - $checkhostssl"
|
||||
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
[ "${ST_ACTION}" != "check" ] && echo -en "\033[1A\033[K\r ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
|
||||
if ([ "${ST_ACTION}" == "report" ] && [ "${2}" == "email" ]) || [ "${ST_ACTION}" != "report" ]; then
|
||||
if [ "${NTYPE}" == "OFW" ]; then
|
||||
uptime=$(${NCMD} uptime | awk '{print $3}' | cut -d, -f1)
|
||||
@@ -187,6 +186,7 @@ STATUS(){
|
||||
uptime=$(${NCMD} uptime -p)
|
||||
|
||||
fi
|
||||
[ "${ST_ACTION}" != "check" ] && echo -en "\033[K\r ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
|
||||
echo -e "${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user