1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-13 01:34:35 +00:00

FIX: Fix for db not being created on new installs when in maintenance mode

This commit is contained in:
evilhero 2018-03-17 22:43:04 -04:00
parent 312e699ef1
commit 47fb2db6ed

View file

@ -191,6 +191,13 @@ def initialize(config_file):
else:
vers = 'NONE'
# Initialize the database
logger.info('Checking to see if the database has all tables....')
try:
dbcheck()
except Exception, e:
logger.error('Cannot connect to the database: %s' % e)
if MAINTENANCE is False:
#try to get the local IP using socket. Get this on every startup so it's at least current for existing session.
import socket
@ -218,13 +225,6 @@ def initialize(config_file):
logger.info('Config GIT Branch: %s' % CONFIG.GIT_BRANCH)
# Initialize the database
logger.info('Checking to see if the database has all tables....')
try:
dbcheck()
except Exception, e:
logger.error('Cannot connect to the database: %s' % e)
# Check for new versions (autoupdate)
if CONFIG.CHECK_GITHUB_ON_STARTUP:
try: