1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

script for clearing out Redis databae

This commit is contained in:
Seth Schoen
2012-07-12 16:29:54 -07:00
parent 94b6e593fb
commit d58e2901fa

10
server-ca/clear-db.py Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python
print "WARNING: Redis database will be cleared!"
raw_input("Press Enter to continue. ")
import redis
r = redis.Redis()
for i in xrange(len(r.keys())):
r.delete(r.randomkey())