mirror of
https://github.com/certbot/certbot.git
synced 2026-06-13 18:50:20 -04:00
script for clearing out Redis databae
This commit is contained in:
parent
94b6e593fb
commit
d58e2901fa
1 changed files with 10 additions and 0 deletions
10
server-ca/clear-db.py
Normal file
10
server-ca/clear-db.py
Normal 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())
|
||||
Loading…
Reference in a new issue