diff --git a/pyvpn b/pyvpn index 0f408a2..f40bff1 100755 --- a/pyvpn +++ b/pyvpn @@ -46,6 +46,17 @@ if len(sys.argv) > 2: 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: sys.stdout.write("Error! Missing options!")