aboutsummaryrefslogtreecommitdiff
path: root/hourly.py
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:58:12 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:58:12 +0200
commitc03e009d01ebe2e55a4383e934385dabd9ea0749 (patch)
tree95228b48146ae05e19005246831b450171f901ac /hourly.py
parent459fd487fcbdc33fcccddbf4c82eae048275ba51 (diff)
download0tdns-c03e009d01ebe2e55a4383e934385dabd9ea0749.tar.gz
0tdns-c03e009d01ebe2e55a4383e934385dabd9ea0749.zip
move sources to src/
Diffstat (limited to 'hourly.py')
-rwxr-xr-xhourly.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/hourly.py b/hourly.py
deleted file mode 100755
index 543ed20..0000000
--- a/hourly.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/python3
-
-from sys import argv
-import subprocess
-
-wrapper = '/var/lib/0tdns/vpn_wrapper.sh'
-perform_queries = '/var/lib/0tdns/perform_queries.py'
-
-def get_vpn_connections(hour):
- # TODO query database for the necessary information,
- # for now, return some sample though-up data
- return (
- # vpn_id | config_path
- (14, "./vpngate_178.254.251.12_udp_1195.ovpn"),
- (13, "./vpngate_public-vpn-229.opengw.net_tcp_443.ovpn")
- )
-
-hour = argv[1]
-for vpn_id, config_path in get_vpn_connections(hour):
- subprocess.run([wrapper, config_path, perform_queries, hour])