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]}"
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
|
|
||||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
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
|
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ]; then
|
||||||
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
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
|
elif [ "${tryupdate}" == "true" ]; then
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
[ "${checkport}" != "" ] && rm -f ${MMFOLDER}/mm.${srvc}.starting
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user