mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Revert dns restart logic (#2169)
This commit is contained in:
parent
042bdcdf37
commit
976ae96633
@ -150,8 +150,12 @@ class CoreDNS(JsonConfig, CoreSysAttributes):
|
|||||||
_LOGGER.error("Can't read resolve.tmpl: %s", err)
|
_LOGGER.error("Can't read resolve.tmpl: %s", err)
|
||||||
|
|
||||||
# Run CoreDNS
|
# Run CoreDNS
|
||||||
|
# If running, restart to update config/hosts
|
||||||
|
# this get shipped with Supervisor
|
||||||
with suppress(CoreDNSError):
|
with suppress(CoreDNSError):
|
||||||
if not await self.instance.is_running():
|
if await self.instance.is_running():
|
||||||
|
await self.restart()
|
||||||
|
else:
|
||||||
await self.start()
|
await self.start()
|
||||||
|
|
||||||
# Update supervisor
|
# Update supervisor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user