unbound: ensure systemd service can be started after root keys were generated

This commit is contained in:
missytake
2024-01-09 18:30:40 +01:00
parent 45108d9c93
commit 45686778ea

View File

@@ -442,7 +442,10 @@ def deploy_chatmail(config_path: Path) -> None:
)
server.shell(
name="Generate root keys for validating DNSSEC",
commands=["unbound-anchor -a /var/lib/unbound/root.key || true"],
commands=[
"unbound-anchor -a /var/lib/unbound/root.key || true",
"systemctl reset-failed unbound.service",
],
)
systemd.service(
name="Start and enable unbound",