Skip to content
Snippets Groups Projects
Commit 7ca18675 authored by nkour's avatar nkour
Browse files

inform user about wiki page. give him to time to read the message and inform...

inform user about wiki page. give him to time to read the message and inform him he cancel and read wiki more carefully. start migration after 40 secs of first informative message
parent 0b3cece7
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@
import os
import sre
import sys
import time
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
from pysqlite2 import dbapi2 as sqlite
......@@ -167,10 +171,13 @@ def visit(arg, dirname, filenames):
con.commit()
if __name__ == '__main__':
print 'IMPORTNANT: PLEASE READ http://trac.gajim.org/wiki/MigrateLogToDot9DB'
print 'Migration will start in 40 seconds unless you press Ctrl+C'
time.sleep(40) # give him time to act
print
print 'Starting Logs Migration'
print '======================='
print 'Please do NOT run Gajim until this script is over'
print 'For more read http://trac.gajim.org/wiki/MigrateLogToDot9DB'
os.path.walk(PATH_TO_LOGS_BASE_DIR, visit, None)
f = open(os.path.join(PATH_TO_LOGS_BASE_DIR, 'README'), 'w')
f.write('We do not use plain-text files anymore, because they do not scale.\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment