Update mm-scripts.sh

This commit is contained in:
2023-04-22 22:45:24 -05:00
parent 42654160f0
commit ce4e72c6b2

View File

@@ -146,11 +146,11 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
rm -f ${MMFOLDER}/mm.vpn.fail
MMSTOP
sleep 5m
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${MMFOLDER}/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
"${VPN_START[@]}" >/dev/null 2>&1
sleep 10s
# rm -f ${MMFOLDER}/mm.stop*
# [ $VERBOSE = true ] && DEBUGLOGSTOP
# exit 1
elif [ -f ${MMFOLDER}/mm.vpn.fail2 ]; then
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
SENDNOTICE "VPN Failure" "Final Failure, shutting down system" 2