diff options
| author | 2026-04-08 15:47:52 +0000 | |
|---|---|---|
| committer | 2026-04-08 15:47:52 +0000 | |
| commit | ea7bf131a4dd3ed2a1baa28e95d5e1155d545db1 (patch) | |
| tree | ed5833801232ced7e724b3b2a49c594c3eddbedc /cronjob.py | |
| parent | fix some typos and add more docstrings (diff) | |
shorten wg name
Diffstat (limited to 'cronjob.py')
| -rwxr-xr-x | cronjob.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ while row := curs.fetchone(): name, asn = row print(f'Processing {asn}-{name}...') birdcfg = open(f'/etc/bird/peers/as{asn}{name}.conf', 'w') - wgcfg = open(f'/etc/wireguard/wg-{asn}-{name}.conf', 'w') + wgcfg = open(f'/etc/wireguard/wg{asn%10000}{name}.conf', 'w') print(_bird_config(name, _get_peer_info(name, asn), _get_my_info(asn)), file=birdcfg) print(_wg_config(name, _get_peer_info(name, asn), _get_my_info(asn)), file=wgcfg) birdcfg.close() |
