Update mm-scripts.sh

This commit is contained in:
2023-03-25 11:33:22 -05:00
parent 5f92331612
commit dd1d0ea022

View File

@@ -458,7 +458,7 @@ MMSTATUS(){
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
else
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
[ "${MM_SERVICE_PORTS[${srvc}]}" != "" ] && checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
if ([ "${MM_SERVICE_PORTS[${srvc}]}" != "" ] && [ "${checkport}" != "" ]) || [ "${MM_SERVICE_PORTS[${srvc}]}" == "" ]; then
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
elif [ "${checkport}" == "" ]; then