mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21: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)):
|
if helpers.bool_true(os.getenv('TAUTULLI_DOCKER', False)):
|
||||||
plexpy.DOCKER = True
|
plexpy.DOCKER = True
|
||||||
|
plexpy.DOCKER_MOUNT = not os.path.isfile('/config/DOCKER')
|
||||||
if helpers.bool_true(os.getenv('TAUTULLI_SNAP', False)):
|
if helpers.bool_true(os.getenv('TAUTULLI_SNAP', False)):
|
||||||
plexpy.SNAP = True
|
plexpy.SNAP = True
|
||||||
|
|
||||||
|
|
|
@ -4522,3 +4522,9 @@ a.donate-with-crypto::after {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.docker-mount {
|
||||||
|
margin: 20px auto 0 auto;
|
||||||
|
position: relative;
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
|
@ -21,6 +21,16 @@
|
||||||
|
|
||||||
<%def name="body()">
|
<%def name="body()">
|
||||||
<div class="container">
|
<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="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class='card-back-full'>
|
<div class='card-back-full'>
|
||||||
|
|
|
@ -40,6 +40,16 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<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="row">
|
||||||
<div class="wizard" id="setup-wizard" data-title="Tautulli Setup Wizard">
|
<div class="wizard" id="setup-wizard" data-title="Tautulli Setup Wizard">
|
||||||
<form>
|
<form>
|
||||||
|
|
|
@ -104,6 +104,7 @@ CREATEPID = False
|
||||||
PIDFILE = None
|
PIDFILE = None
|
||||||
NOFORK = False
|
NOFORK = False
|
||||||
DOCKER = False
|
DOCKER = False
|
||||||
|
DOCKER_MOUNT = False
|
||||||
SNAP = False
|
SNAP = False
|
||||||
SNAP_MIGRATE = False
|
SNAP_MIGRATE = False
|
||||||
FROZEN = False
|
FROZEN = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue