module: run migrations before attempting to start worker
`manage.py` attempts migrations on its own[1], so try let's try to prevent another potential for races. [1] https://github.com/goauthentik/authentik/blob/version/2025.8.3/manage.py#L17-L24
This commit is contained in:
parent
039fcdfd00
commit
1c79d48248
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ in
|
|||
requires = lib.optionals cfg.createDatabase [ "postgresql.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ] ++ lib.optionals cfg.createDatabase [ "postgresql.service" ];
|
||||
before = [ "authentik.service" ];
|
||||
before = [ "authentik.service" "authentik-migrate.service" ];
|
||||
restartTriggers = [ config.environment.etc."authentik/config.yml".source ];
|
||||
environment = mkMerge [ environment { TZ = tz; } ];
|
||||
serviceConfig = mkMerge [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue