nixos/kimai: fix an error on first init after an upgrade (#371917)

authored by Weijia Wang and committed by GitHub 86e6f70e 7aaf12da

+5 -1
+5 -1
nixos/modules/services/web-apps/kimai.nix
··· 322 322 323 323 # Run kimai:install to ensure database is created or updated. 324 324 # Note that kimai:update is an alias to kimai:install. 325 - ${pkg hostName cfg}/bin/console kimai:install 325 + ${pkg hostName cfg}/bin/console kimai:install --no-cache 326 + # Clear cache and warmup cache separately, to avoid "Cannot declare 327 + # class App\Entity\Timesheet" error on first init after upgrade. 328 + ${pkg hostName cfg}/bin/console cache:clear --env=prod 329 + ${pkg hostName cfg}/bin/console cache:warmup --env=prod 326 330 ''; 327 331 328 332 serviceConfig = {