Add TAUTULLI_SNAP environment variable

This commit is contained in:
JonnyWong16 2020-12-17 12:48:12 -08:00
parent 0dddc4d58f
commit da3bc127dc
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 5 additions and 0 deletions

View file

@ -124,6 +124,8 @@ def main():
if helpers.bool_true(os.getenv('TAUTULLI_DOCKER', False)): if helpers.bool_true(os.getenv('TAUTULLI_DOCKER', False)):
plexpy.DOCKER = True plexpy.DOCKER = True
if helpers.bool_true(os.getenv('TAUTULLI_SNAP', False)):
plexpy.SNAP = True
if args.dev: if args.dev:
plexpy.DEV = True plexpy.DEV = True

View file

@ -98,6 +98,7 @@ CREATEPID = False
PIDFILE = None PIDFILE = None
NOFORK = False NOFORK = False
DOCKER = False DOCKER = False
SNAP = False
FROZEN = False FROZEN = False
SCHED = None SCHED = None
@ -194,6 +195,8 @@ def initialize(config_file):
if DOCKER: if DOCKER:
build = '[Docker] ' build = '[Docker] '
elif SNAP:
build = '[Snap] '
elif FROZEN: elif FROZEN:
build = '[Bundle] ' build = '[Bundle] '
else: else: