diff --git a/mm-scripts.sh b/mm-scripts.sh index 5786b52..50d1168 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -328,8 +328,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf sleep 5s fi checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t) - if [ "${checkport}" == "" ] && [ -f /opt/${srvc}-update.sh ]; then - /opt/${srvc}-update.sh + if [ "${checkport}" == "" ] && [ "${MM_UPDATE_REPO[${srvc}]}" != "" ; then + UPDATESERVICE {$srvc} >/dev/null 2>&1 fi done