mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add previously configured notification agents to the new system
This commit is contained in:
parent
f0595b8b0a
commit
8bdf1af021
3 changed files with 152 additions and 28 deletions
|
@ -149,7 +149,14 @@ def initialize(config_file):
|
|||
try:
|
||||
dbcheck()
|
||||
except Exception as e:
|
||||
logger.error("Can't connect to the database: %s" % e)
|
||||
logger.error(u"Can't connect to the database: %s" % e)
|
||||
|
||||
# Perform upgrades
|
||||
logger.info(u"Checking if configuration upgrades are required...")
|
||||
try:
|
||||
upgrade()
|
||||
except Exception as e:
|
||||
logger.error(u"Could not perform upgrades: %s" % e)
|
||||
|
||||
# Check if PlexPy has a uuid
|
||||
if CONFIG.PMS_UUID == '' or not CONFIG.PMS_UUID:
|
||||
|
@ -982,6 +989,9 @@ def dbcheck():
|
|||
conn_db.commit()
|
||||
c_db.close()
|
||||
|
||||
def upgrade():
|
||||
if CONFIG.UPDATE_NOTIFIERS_DB:
|
||||
notifiers.upgrade_config_to_db()
|
||||
|
||||
def shutdown(restart=False, update=False):
|
||||
cherrypy.engine.exit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue