Update mm-scripts.sh

This commit is contained in:
2023-10-12 11:09:19 -05:00
parent ee83a91b14
commit 48de85d3e7

View File

@@ -625,7 +625,7 @@ MMSTATUS(){
else
[ "${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[Cyan]}(Port: ${MM_SERVICE_PORTS[${srvc}]})${idsCL[Default]}"
[[ ${srvc} == *"wireguard"* ]] && echo -e "${idsCL[Green]}Running${idsCL[Default]}" || echo -e "${idsCL[Green]}Running ${idsCL[Cyan]}(Port: ${MM_SERVICE_PORTS[${srvc}]})${idsCL[Default]}"
elif [ "${checkport}" == "" ]; then
echo -e "${idsCL[LightMagenta]}Service Running, Web Port Not Accesible${idsCL[Default]}"
fi