From 30ce34c19a0e2e2da41eacf06733894e4516f6ff Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 8 Mar 2024 20:43:19 +0100 Subject: [PATCH] Should solve server master to backup failover --- omr-tracker/files/bin/omr-tracker-server | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omr-tracker/files/bin/omr-tracker-server b/omr-tracker/files/bin/omr-tracker-server index 999e95ff0d..444c1634ac 100755 --- a/omr-tracker/files/bin/omr-tracker-server +++ b/omr-tracker/files/bin/omr-tracker-server @@ -168,9 +168,11 @@ _check_master() { add_list openvpn.omr.remote=$ip commit openvpn set openmptcprouter.${name}.current='1' + set openmptcprouter.${name}.get_config='1' commit openmptcprouter EOF /etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null + /etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null /etc/init.d/v2ray restart >/dev/null 2>/dev/null /etc/init.d/xray restart >/dev/null 2>/dev/null /etc/init.d/glorytun restart >/dev/null 2>/dev/null @@ -317,9 +319,11 @@ _check_backup() { add_list openvpn.omr.remote=$ip commit openvpn set openmptcprouter.${name}.current='1' + set openmptcprouter.${name}.get_config='1' commit openmptcprouter EOF /etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null + /etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null /etc/init.d/v2ray restart >/dev/null 2>/dev/null /etc/init.d/xray restart >/dev/null 2>/dev/null /etc/init.d/glorytun restart >/dev/null 2>/dev/null