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:
parent
312e699ef1
commit
47fb2db6ed
1 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue