mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/vault-agent: fix ExecStart generation when a vault package is set
Without this fix, if `config.services.vault.package` is set to e.g. `vault-bin` (instead of the `vault` default), then `ExecStart` gets improperly generated without the `agent` positional argument because `vault-bin` did not match `vault`, and the command for the `consul` flavor gets generated instead. To fix this, we can look at the `flavor` argument instead of the package name.
This commit is contained in:
parent
c414ff7314
commit
324404fe2c
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ let
|
|||
Group = instance.group;
|
||||
RuntimeDirectory = flavour;
|
||||
ExecStart = "${lib.getExe instance.package} ${
|
||||
lib.optionalString ((lib.getName instance.package) == "vault") "agent"
|
||||
lib.optionalString (flavour == "vault-agent") "agent"
|
||||
} -config ${configFile}";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGHUP $MAINPID";
|
||||
KillSignal = "SIGINT";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue