Add revocation capability
This commit is contained in:
parent
5077813018
commit
4b123a2225
11
pyvpn
11
pyvpn
|
@ -46,6 +46,17 @@ if len(sys.argv) > 2:
|
||||||
quit()
|
quit()
|
||||||
|
|
||||||
|
|
||||||
|
elif sys.argv[1] == "--revoke-client":
|
||||||
|
|
||||||
|
prog = os.popen('which revoke-vpn-user').read()
|
||||||
|
|
||||||
|
if prog == "/usr/bin/revoke-vpn-user":
|
||||||
|
|
||||||
|
os.System(prog + " " + sys.argv[2])
|
||||||
|
else:
|
||||||
|
sys.stdout.write("Error! This system is not ready for client revocation yet. Please try again later.")
|
||||||
|
sys.stdout.flush()
|
||||||
|
quit()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
sys.stdout.write("Error! Missing options!")
|
sys.stdout.write("Error! Missing options!")
|
||||||
|
|
Loading…
Reference in New Issue