Hide auto update setting for bundled app

This commit is contained in:
JonnyWong16 2020-04-25 20:30:02 -07:00
parent be38028244
commit c6bd1b06f2
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 3 additions and 1 deletions

View file

@ -215,12 +215,14 @@
<p class="help-block">Check for Tautulli updates periodically.</p>
</div>
<div id="git_update_options">
% if not plexpy.FROZEN:
<div class="checkbox">
<label>
<input type="checkbox" id="plexpy_auto_update" name="plexpy_auto_update" value="1" ${config['plexpy_auto_update']} ${docker_setting}> Update Automatically ${docker_msg | n}
</label>
<p class="help-block">Update Tautulli automatically if an update is available.</p>
</div>
% endif
<div class="form-group advanced-setting">
<label for="git_token">GitHub API Token</label>
<div class="row">

View file

@ -250,7 +250,7 @@ def check_github(scheduler=False, notify=False):
'plexpy_update_commit': plexpy.LATEST_VERSION,
'plexpy_update_behind': plexpy.COMMITS_BEHIND})
if scheduler and plexpy.CONFIG.PLEXPY_AUTO_UPDATE and not plexpy.DOCKER:
if scheduler and plexpy.CONFIG.PLEXPY_AUTO_UPDATE and not plexpy.DOCKER and not plexpy.FROZEN:
logger.info('Running automatic update.')
plexpy.shutdown(restart=True, update=True)