Update mm-scripts.sh

This commit is contained in:
2023-04-22 16:50:16 -05:00
parent 792f27868f
commit d93dfe5fee

View File

@@ -475,7 +475,7 @@ MMSTOP(){
for srvc in "${!MM_SERVICES[@]}"; do
if [ "MM_SERVICE_PORTS[${srvc}]" != "" ] && [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
echo "$srvc - ${MM_SERVICE_PORTS[${srvc}]} - $checkport"
# echo "$srvc - ${MM_SERVICE_PORTS[${srvc}]} - $checkport"
until [ "${checkport}" == "" ]; do
sleep 1s
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)