nixos/influxdb2: do not load passwordFile and tokenFile when provisioning is disabled
This commit is contained in:
parent
8a294d53a8
commit
a4c6594dcd
|
@ -107,7 +107,7 @@ in
|
|||
LimitNOFILE = 65536;
|
||||
KillMode = "control-group";
|
||||
Restart = "on-failure";
|
||||
LoadCredential = [
|
||||
LoadCredential = mkIf cfg.provision.enable [
|
||||
"admin-password:${cfg.provision.initialSetup.passwordFile}"
|
||||
"admin-token:${cfg.provision.initialSetup.tokenFile}"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue