Only turning on hotspot while on-the-metal.

This commit is contained in:
Roland 2022-04-29 19:48:28 -06:00
parent b431e1b753
commit 05265b526e
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

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()