move config to data folder, fixes #171

This commit is contained in:
j 2016-01-18 12:04:20 +05:30
commit b05618f50a
7 changed files with 61 additions and 43 deletions

View file

@ -362,7 +362,7 @@ def upgrade_db(old, new=None):
)''')
run_sql('CREATE INDEX idx_scrape_added ON scrape (added)')
if old <= '20151118-346-7e86e68':
old_key = os.path.join(settings.config_path, 'node.ssl.key')
old_key = os.path.join(settings.data_path, 'node.ssl.key')
if os.path.exists(old_key):
os.unlink(old_key)
if settings.OLD_USER_ID: