Update mm-scripts.sh

This commit is contained in:
2023-03-25 15:57:02 -05:00
parent b0e987ae70
commit 67612a7a09

View File

@@ -328,7 +328,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
sleep 5s
fi
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
if [ "${checkport}" == "" ] && [ "${MM_UPDATE_REPO[${srvc}]}" != "" ; then
if [ "${checkport}" == "" ] && [ "${MM_UPDATE_REPO[${srvc}]}" != "" ]; then
UPDATESERVICE {$srvc} >/dev/null 2>&1
fi
done