diff options
author | John Soo <john.soo@arista.com> | 2023-03-16 09:45:09 -0700 |
---|---|---|
committer | John Soo <john.soo@arista.com> | 2023-03-16 09:45:09 -0700 |
commit | 740fea3eddfd1b6a8a1f65f32ae3bd0336370f14 (patch) | |
tree | fc1c29b1c1f7a8d3ba9cd88ccfbf1c1953875330 /nixos/modules/services/web-servers/minio.nix | |
parent | 29523c05e444e8f56e1f9ebed6a85b2168f80916 (diff) | |
download | nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar.gz nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar.bz2 nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar.lz nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar.xz nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.tar.zst nixpkgs-740fea3eddfd1b6a8a1f65f32ae3bd0336370f14.zip |
fixup! nixos/minio: activate/restart service on credentials path changes
Diffstat (limited to 'nixos/modules/services/web-servers/minio.nix')
-rw-r--r-- | nixos/modules/services/web-servers/minio.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/minio.nix b/nixos/modules/services/web-servers/minio.nix index a1695e6a1ed..21bec4f63a8 100644 --- a/nixos/modules/services/web-servers/minio.nix +++ b/nixos/modules/services/web-servers/minio.nix @@ -124,8 +124,11 @@ in } (lib.mkIf (cfg.rootCredentialsFile != null) { + # The service will fail if the credentials file is missing services.minio.unitConfig.ConditionPathExists = cfg.rootCredentialsFile; + # The service will not restart if the credentials file has + # been changed. This can cause stale root credentials. paths.minio-root-credentials = { wantedBy = [ "multi-user.target" ]; |