Update mm-scripts.sh

This commit is contained in:
2023-03-26 21:40:22 -05:00
parent b0f5bbff8b
commit cbce7de4e6

View File

@@ -330,7 +330,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
for srvc in "${SERVICES_CHECK[@]}"; do
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ]; then
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ] && [ "${1}" == "check" ]; then
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
tryupdate=false