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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user