From bdbd463aa85f7e84557aafdadc05e82f094aca61 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Mar 2021 20:54:34 +0100 Subject: [PATCH] fixed remove openvpn configuration with gateway DELETE --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 257edfe..7581ae3 100644 --- a/main.py +++ b/main.py @@ -179,6 +179,8 @@ def delete_gateway(fqdn): except Ex as e: return jsonify({'status': 'error', 'message': str(e)}), e.getCode() + os.remove('/data/ovpn/clients/' + fqdn) + db.commit() cu.close() db.close()