A completely evil environment destroying script.
This commit is contained in:
parent
1b734c4d67
commit
1dddd4e913
22
destroy_environment.py
Executable file
22
destroy_environment.py
Executable file
@ -0,0 +1,22 @@
|
||||
#!./bin/python
|
||||
|
||||
import pymongo
|
||||
import sys, os
|
||||
|
||||
print "*** WARNING! ***"
|
||||
print " Running this will destroy your mediagoblin database,"
|
||||
print " remove all your media files in user_dev/, etc."
|
||||
|
||||
drop_it = raw_input(
|
||||
'Are you SURE you want to destroy your environment? (if so, type "yes")> ')
|
||||
|
||||
if not drop_it == 'yes':
|
||||
sys.exit(1)
|
||||
|
||||
conn = pymongo.Connection()
|
||||
conn.drop_database('mediagoblin')
|
||||
|
||||
os.popen('rm -rf user_dev/media')
|
||||
os.popen('rm -rf user_dev/beaker')
|
||||
|
||||
print "removed all your stuff! okay, now re-run ./bin/buildout"
|
Loading…
x
Reference in New Issue
Block a user