mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
Add docker mount warning message
This commit is contained in:
parent
92440224de
commit
8f3a108f3b
5 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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'>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -104,6 +104,7 @@ CREATEPID = False
|
|||
PIDFILE = None
|
||||
NOFORK = False
|
||||
DOCKER = False
|
||||
DOCKER_MOUNT = False
|
||||
SNAP = False
|
||||
SNAP_MIGRATE = False
|
||||
FROZEN = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue