Update mm-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user