nixos/kimai: ensure that our local.yaml is valid on init time

This is normally done by kimai:reload command (which also include cache
clearing and warming up). But because we skip that command, run config
linting ourselves.
This commit is contained in:
Ratchanan Srirattanamet
2025-01-07 20:58:17 +00:00
parent ed8af6b426
commit bd57044a60
@@ -320,6 +320,10 @@ in
umask $oldUmask
# Ensure that our local.yaml is valid (see kimai:reload command).
${pkg hostName cfg}/bin/console lint:yaml --parse-tags \
${pkg hostName cfg}/share/php/kimai/config
# Run kimai:install to ensure database is created or updated.
# Note that kimai:update is an alias to kimai:install.
${pkg hostName cfg}/bin/console kimai:install