Fix disabling portal in health checker

This commit is contained in:
Filip Rysavy 2021-11-26 16:38:53 +01:00
parent 124695c17e
commit f5b81d1287
No known key found for this signature in database
GPG Key ID: EA1F430401C92D99
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ async def check_disk():
inspect_json = json.loads(inspect)
if inspect_json[0]["State"]["Running"] is True:
# mark portal as unhealthy
os.popen("docker exec health-check cli/disable")
os.popen("docker exec health-check cli disable 'critical free disk space'")
time.sleep(300) # wait 5 minutes to propagate dns changes
os.popen("docker stop sia") # stop sia container
return await send_msg(message, force_notify=True)