mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Don't auto restart when updating Windows install
This commit is contained in:
parent
60f13df992
commit
c319a4a5cc
2 changed files with 5 additions and 5 deletions
|
@ -2279,6 +2279,9 @@ def upgrade():
|
||||||
|
|
||||||
|
|
||||||
def shutdown(restart=False, update=False, checkout=False, reset=False):
|
def shutdown(restart=False, update=False, checkout=False, reset=False):
|
||||||
|
if FROZEN and common.PLATFORM == 'Windows' and update:
|
||||||
|
restart = False
|
||||||
|
|
||||||
webstart.stop()
|
webstart.stop()
|
||||||
|
|
||||||
# Shutdown the websocket connection
|
# Shutdown the websocket connection
|
||||||
|
|
|
@ -277,12 +277,9 @@ def check_github(scheduler=False, notify=False, use_cache=False):
|
||||||
if plexpy.PYTHON2:
|
if plexpy.PYTHON2:
|
||||||
logger.warn('Tautulli is running using Python 2. Unable to run automatic update.')
|
logger.warn('Tautulli is running using Python 2. Unable to run automatic update.')
|
||||||
|
|
||||||
elif scheduler and plexpy.FROZEN and common.PLATFORM == 'Windows':
|
|
||||||
logger.info('Running automatic update.')
|
|
||||||
plexpy.shutdown(update=True)
|
|
||||||
|
|
||||||
elif scheduler and plexpy.CONFIG.PLEXPY_AUTO_UPDATE and \
|
elif scheduler and plexpy.CONFIG.PLEXPY_AUTO_UPDATE and \
|
||||||
not plexpy.DOCKER and not plexpy.SNAP and not plexpy.FROZEN:
|
not plexpy.DOCKER and not plexpy.SNAP and \
|
||||||
|
not (plexpy.FROZEN and common.PLATFORM == 'Darwin'):
|
||||||
logger.info('Running automatic update.')
|
logger.info('Running automatic update.')
|
||||||
plexpy.shutdown(restart=True, update=True)
|
plexpy.shutdown(restart=True, update=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue