nixos/gitlab: fix gitlab-registry-cert path condition
`ConditionPathExists` belongs in the [Unit] section, not [Service]. The unit now properly checks if the cert file already exists before activating so certs will not be overwritten anymore.
This commit is contained in:
parent
22fbd632e6
commit
0c4f8e78b5
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ in {
|
|||
chown ${cfg.user}:${cfg.group} ${cfg.registry.certFile}
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
unitConfig = {
|
||||
ConditionPathExists = "!${cfg.registry.certFile}";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue