Add docker mount warning message

This commit is contained in:
JonnyWong16 2021-10-09 16:11:21 -07:00
parent 92440224de
commit 8f3a108f3b
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 28 additions and 0 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -21,6 +21,16 @@
<%def name="body()">
<div class="container">
% if plexpy.DOCKER and not plexpy.DOCKER_MOUNT:
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger docker-mount" role="alert">
The <span class="inline-pre">/config</span> volume mount was not configured properly for the Docker container.
All data may be cleared when the container is recreated or updated.
</div>
</div>
</div>
% endif
<div class="row">
<div class="col-md-12">
<div class='card-back-full'>

View file

@ -40,6 +40,16 @@
<body>
<div class="container-fluid">
% if plexpy.DOCKER and not plexpy.DOCKER_MOUNT:
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger docker-mount" role="alert" style="width: 700px;">
The <span class="inline-pre">/config</span> volume mount was not configured properly for the Docker container.
All data may be cleared when the container is recreated or updated.
</div>
</div>
</div>
% endif
<div class="row">
<div class="wizard" id="setup-wizard" data-title="Tautulli Setup Wizard">
<form>

View file

@ -104,6 +104,7 @@ CREATEPID = False
PIDFILE = None
NOFORK = False
DOCKER = False
DOCKER_MOUNT = False
SNAP = False
SNAP_MIGRATE = False
FROZEN = False