Add TAUTULLI_SNAP environment variable

This commit is contained in:
JonnyWong16
2020-12-17 12:48:12 -08:00
parent 0dddc4d58f
commit da3bc127dc
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)):
plexpy.DOCKER = True
if helpers.bool_true(os.getenv('TAUTULLI_SNAP', False)):
plexpy.SNAP = True
if args.dev:
plexpy.DEV = True

View File

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