Revert dns restart logic (#2169)

This commit is contained in:
Pascal Vizeli 2020-10-23 16:49:35 +02:00 committed by GitHub
parent 042bdcdf37
commit 976ae96633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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