nut: Reload systemd after updating container unit

Need to run `systemctl daemon-reload` after creating or modifying the
`nut-server.container` unit file, so that the corresponding service unit
will be generated.
master
Dustin 2024-01-14 19:08:35 -06:00
parent e2f9cc7a3a
commit 0e046d062e
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ templates = [
template = "nut/nut-server.container"
dest = "/etc/containers/systemd/nut-server.container"
hooks = {
changed = [{run = "systemctl restart nut-server"}]
changed = [
{run = "systemctl daemon-reload", immediate = True}
{run = "systemctl restart nut-server"}
]
}
}
]