mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Flag update JWT UUID after restarting
This commit is contained in:
parent
f21d505ab8
commit
7498617b74
4 changed files with 15 additions and 15 deletions
|
@ -222,6 +222,12 @@ def initialize(config_file):
|
|||
CONFIG.JWT_SECRET = generate_uuid()
|
||||
CONFIG.write()
|
||||
|
||||
if CONFIG.JWT_UUID == '' or CONFIG.JWT_UPDATE_UUID:
|
||||
logger.debug(u"Generating JWT UUID...")
|
||||
CONFIG.JWT_UUID = generate_uuid()
|
||||
CONFIG.JWT_UPDATE_UUID = False
|
||||
CONFIG.write()
|
||||
|
||||
# Get the previous version from the file
|
||||
version_lock_file = os.path.join(DATA_DIR, "version.lock")
|
||||
prev_version = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue