fix - use set_stock_oc param even from saved config
This commit is contained in:
parent
f170a0fdd5
commit
f489b59473
|
@ -254,8 +254,6 @@ async def hive_load_configs(default_power_limits, static_config):
|
|||
if key[-9:] == "_TEMPLATE":
|
||||
possible_clore_config = base64_string_to_json(value)
|
||||
if possible_clore_config:
|
||||
if "set_stock_oc" in possible_clore_config:
|
||||
get_oc_config=True
|
||||
clore_config = possible_clore_config
|
||||
elif key == "CUSTOM_MINER" and value == "clore":
|
||||
clore_miner_present = True
|
||||
|
@ -264,6 +262,12 @@ async def hive_load_configs(default_power_limits, static_config):
|
|||
clore_miner_present = True
|
||||
clore_config = parsed_static_config
|
||||
|
||||
try:
|
||||
if clore_config and "set_stock_oc" in clore_config:
|
||||
get_oc_config=True
|
||||
except Exception as es:
|
||||
pass
|
||||
|
||||
if not clore_miner_present:
|
||||
logger.info("CLORE not found in flighsheet, exiting")
|
||||
await run_command("systemctl disable clore-hosting.service ; systemctl stop clore-hosting.service ; systemctl disable docker ; systemctl stop docker ; systemctl disable clore-onboarding.service ; systemctl stop clore-onboarding.service")
|
||||
|
|
Loading…
Reference in New Issue