Commit Graph

3 Commits (0e046d062e4a4a9d1847d7cc6a1af233f4ffd33f)

Author SHA1 Message Date
Dustin 0e046d062e 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.
2024-01-14 19:24:55 -06:00
Dustin d44e7df8cf nut: Pass explicit path to systemd-sysusers
When `tmpl` substitutes the path of the generated file for `%s` in hook
commands, it uses the full path including the `destdir` prefix.  Since
we're running `tmpl` inside a container, but `systemd-sysusers` outside
it (via `nsenter -t 1`), that path is not correct.  Thus, we need to
explicitly pass the path as `systemd-sysusers` will see it.
2024-01-14 19:24:55 -06:00
Dustin 778c6d440d Initial commit 2024-01-14 19:24:55 -06:00