Merge pull request #122 from lrnselfreliance/bugfix/119-disable-startup-hotspot-docker

Only turning on hotspot while on-the-metal.
This commit is contained in:
lrnselfreliance 2022-04-29 19:52:30 -06:00 • committed by GitHub
commit 20849017a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -93,9 +93,10 @@ async def main(loop):
tz = pytz.timezone(config.timezone)
set_timezone(tz)
if config.hotspot_on_startup:
# Hotspot/throttle are not supported in Docker containers.
if not DOCKERIZED and config.hotspot_on_startup:
admin.enable_hotspot()
if config.throttle_on_startup:
if not DOCKERIZED and config.throttle_on_startup:
admin.throttle_cpu_on()
check_media_directory()

View file

@ -1,4 +1,4 @@
__version__ = '0.4.4-beta'
__version__ = '0.4.5-beta'
import subprocess