Update mm-scripts.sh
This commit is contained in:
@@ -330,7 +330,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||||
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
|
[ "$(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)
|
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
||||||
|
|
||||||
tryupdate=false
|
tryupdate=false
|
||||||
|
|||||||
Reference in New Issue
Block a user