Update mm-scripts.sh
This commit is contained in:
@@ -475,7 +475,7 @@ MMSTOP(){
|
|||||||
for srvc in "${!MM_SERVICES[@]}"; do
|
for srvc in "${!MM_SERVICES[@]}"; do
|
||||||
if [ "MM_SERVICE_PORTS[${srvc}]" != "" ] && [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then
|
if [ "MM_SERVICE_PORTS[${srvc}]" != "" ] && [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then
|
||||||
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
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
|
until [ "${checkport}" == "" ]; do
|
||||||
sleep 1s
|
sleep 1s
|
||||||
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
||||||
|
|||||||
Reference in New Issue
Block a user