swarm-controller: chgrp the runtime dir in ExecStartPost, ExecStart's setup undid the ExecStartPre one
This commit is contained in:
parent
738dd1c95b
commit
a6147dc875
2 changed files with 8 additions and 7 deletions
|
|
@ -449,8 +449,8 @@ let
|
|||
group = "swarm-controller-clients";
|
||||
in
|
||||
sc.RuntimeDirectoryMode == "0750"
|
||||
&& lib.hasPrefix "+" sc.ExecStartPre
|
||||
&& lib.hasInfix "chgrp ${group} /run/swarm-controller" sc.ExecStartPre
|
||||
&& lib.hasPrefix "+" sc.ExecStartPost
|
||||
&& lib.hasInfix "chgrp ${group} /run/swarm-controller" sc.ExecStartPost
|
||||
&& lib.elem group allLocal.systemd.services.nginx.serviceConfig.SupplementaryGroups
|
||||
&& allLocal.users.groups ? ${group}
|
||||
&& sc.Group != group;
|
||||
|
|
|
|||
Loading…
Reference in a new issue