From df9b282b18825685a1bdf0bee37bf375e4cdcf21 Mon Sep 17 00:00:00 2001 From: creme Date: Fri, 5 Jan 2024 12:42:13 +0100 Subject: [PATCH] sysinfo.json: remove double vpn traffic stats --- salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json b/salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json index 729e8b48..c1f80cca 100755 --- a/salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json +++ b/salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json @@ -124,10 +124,6 @@ EOM if [ "$iface" = "tbb_wg" ]; then echo " \"traffic_$iface\": \"$(grep "$iface": /proc/net/dev | sed -n 's#.*:[ ]*\([0-9]\+\)\([ ]\+\([0-9]\+\)\)\{8\}.*#\1,\3#;p')\"," fi - - if [[ "$iface" =~ "vpn"* ]]; then - echo " \"traffic_wg_$iface\": \"$(grep "$iface": /proc/net/dev | sed -n 's#.*:[ ]*\([0-9]\+\)\([ ]\+\([0-9]\+\)\)\{8\}.*#\1,\3#;p')\"," - fi done rx=$(sudo iptables -w -xvn -L stat_from_ovpn | awk '/RETURN/{print $2}')