diff options
| author | 2026-04-10 21:45:47 +0000 | |
|---|---|---|
| committer | 2026-04-10 21:45:47 +0000 | |
| commit | 7b8b60a39f39999fa7d7a33f182620f33bd7f13b (patch) | |
| tree | 49fc7f3a67aa8f98872bd0a332122a92bdb771f4 /cronjob.py | |
| parent | add ip to login notifications (diff) | |
fix delete wg and fix authorized_keys notify
Diffstat (limited to 'cronjob.py')
| -rwxr-xr-x | cronjob.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,10 +24,10 @@ curs = DB.execute('SELECT name, asn FROM peers WHERE deleted=1') while row := curs.fetchone(): name, asn = row print(f'Deleting {asn}-{name}...') + os.system(f'systemctl disable --now wg-quick@wg{asn%10000:04}{name}') try: os.remove(f'/etc/bird/peers/as{asn}{name}.conf') except FileNotFoundError: pass try: os.remove(f'/etc/wireguard/wg{asn%10000:04}{name}.conf') except FileNotFoundError: pass - os.system(f'systemctl disable --now wg-quick@wg{asn%10000:04}{name}') os.system('birdc configure') |
