vault: do not restart the service on "nixos-rebuild switch"
This commit is contained in:
parent
c3996de4fd
commit
334e85e75a
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ in
|
|||
after = [ "network.target" ]
|
||||
++ optional (config.services.consul.enable && cfg.storageBackend == "consul") "consul.service";
|
||||
|
||||
restartIfChanged = false; # do not restart on "nixos-rebuild switch". It would seal the storage and disrupt the clients.
|
||||
|
||||
preStart = optionalString (cfg.storagePath != null) ''
|
||||
install -d -m0700 -o vault -g vault "${cfg.storagePath}"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue