Update mm-scripts.sh

This commit is contained in:
2023-03-26 20:30:06 -05:00
parent 1786b20887
commit 5faa2d4f69

View File

@@ -323,7 +323,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl start ${srvc}
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ]; then
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
@@ -369,6 +369,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
elif [ "${tryupdate}" == "true" ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
fi
[ "${checkport}" != "" ] && rm -f ${MMFOLDER}/mm.${srvc}.starting
fi
done