link static workdir deps to /run/authentik
This commit is contained in:
parent
d2367d0c21
commit
47e0cb8e14
1 changed files with 3 additions and 0 deletions
|
|
@ -154,6 +154,9 @@ in
|
||||||
requiredBy = [ "authentik.service" ];
|
requiredBy = [ "authentik.service" ];
|
||||||
before = [ "authentik.service" ];
|
before = [ "authentik.service" ];
|
||||||
restartTriggers = [ config.environment.etc."authentik/config.yml".source ];
|
restartTriggers = [ config.environment.etc."authentik/config.yml".source ];
|
||||||
|
preStart = ''
|
||||||
|
ln -svf ${config.services.authentik.authentikComponents.staticWorkdirDeps}/* /run/authentik/
|
||||||
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
RuntimeDirectory = "authentik";
|
RuntimeDirectory = "authentik";
|
||||||
WorkingDirectory = "%t/authentik";
|
WorkingDirectory = "%t/authentik";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue