fixed remove openvpn configuration with gateway DELETE

This commit is contained in:
root 2021-03-01 20:54:34 +01:00
parent 11539c57d9
commit bdbd463aa8
1 changed files with 2 additions and 0 deletions

View File

@ -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()