diff --git a/Tautulli.py b/Tautulli.py index 1b19281d..85e30c04 100755 --- a/Tautulli.py +++ b/Tautulli.py @@ -125,6 +125,7 @@ def main(): if helpers.bool_true(os.getenv('TAUTULLI_DOCKER', False)): plexpy.DOCKER = True + plexpy.DOCKER_MOUNT = not os.path.isfile('/config/DOCKER') if helpers.bool_true(os.getenv('TAUTULLI_SNAP', False)): plexpy.SNAP = True diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css index 32f49aaa..c8ad5b2e 100644 --- a/data/interfaces/default/css/tautulli.css +++ b/data/interfaces/default/css/tautulli.css @@ -4522,3 +4522,9 @@ a.donate-with-crypto::after { border: 1px solid #ccc; border-radius: 4px; } + +.docker-mount { + margin: 20px auto 0 auto; + position: relative; + z-index: 9999; +} \ No newline at end of file diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index a076d4c5..f7a8029a 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -21,6 +21,16 @@ <%def name="body()">
+ % if plexpy.DOCKER and not plexpy.DOCKER_MOUNT: +
+
+ +
+
+ % endif
diff --git a/data/interfaces/default/welcome.html b/data/interfaces/default/welcome.html index dec7c791..eff6e118 100644 --- a/data/interfaces/default/welcome.html +++ b/data/interfaces/default/welcome.html @@ -40,6 +40,16 @@
+ % if plexpy.DOCKER and not plexpy.DOCKER_MOUNT: +
+
+ +
+
+ % endif
diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 02b7d81e..b3f9610e 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -104,6 +104,7 @@ CREATEPID = False PIDFILE = None NOFORK = False DOCKER = False +DOCKER_MOUNT = False SNAP = False SNAP_MIGRATE = False FROZEN = False