mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
fixup! nixos/minio: activate/restart service on credentials path changes
This commit is contained in:
parent
29523c05e4
commit
740fea3edd
|
@ -124,8 +124,11 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
(lib.mkIf (cfg.rootCredentialsFile != null) {
|
(lib.mkIf (cfg.rootCredentialsFile != null) {
|
||||||
|
# The service will fail if the credentials file is missing
|
||||||
services.minio.unitConfig.ConditionPathExists = cfg.rootCredentialsFile;
|
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 = {
|
paths.minio-root-credentials = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue