Generate services with Quadlet after CoreOS update

This is to work around issues where generators don't seem to run on
`daemon-reload` as they should, and may be reverted some time in the
future.
This commit is contained in:
Alex Palaistras 2023-08-11 20:58:44 +01:00
parent 9e690a54f0
commit 8daef2903a
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ function main() {
# Synchronize systemd services from local CoreOS home-server configuration.
printf "Synchronizing systemd service files... "
if sync-systemd-services; then
printf "Generating systemd services with Quadlet...\n"
/usr/lib/systemd/system-generators/podman-system-generator "$SYSTEMD_CONFIG_PATH"
printf "Reloading systemd daemon after service updates...\n"
systemctl daemon-reload
fi