1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Fix restart of omr-bypass in schedule

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-17 18:25:35 +01:00
parent 17c84979e2
commit a605265756

View file

@ -202,7 +202,7 @@ fi
if [ -f /etc/init.d/omr-bypass ] && (([ -e /usr/sbin/iptables-nft-save ] && [ "$(iptables-nft-save 2>/dev/null | grep omr-bypass)" = "" ]) || [ "$(iptables-save 2>/dev/null | grep omr-bypass)" = "" ]) && [ "$(pgrep -f omr-bypass)" = "" ]; then
_log "Can't find omr-bypass rules, restart omr-bypass..."
/etc/init.d/omr-bypass 2>&1 >/dev/null
/etc/init.d/omr-bypass start 2>&1 >/dev/null
sleep 5
fi