diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-10 07:59:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 07:59:49 +0000 |
commit | 5be14cce39c9b7e167ba1d40d1e674c7a25b8701 (patch) | |
tree | 9ed00fd760a841ede3b13bfe9d75cfc5147af3ba /nixos | |
parent | bf53dc68c256603f572fdb4a38275d22c68865d4 (diff) | |
parent | 7e76b127cd36d0310fdf98afd66e1999b4fc0d35 (diff) | |
download | nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar.gz nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar.bz2 nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar.lz nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar.xz nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.tar.zst nixlib-5be14cce39c9b7e167ba1d40d1e674c7a25b8701.zip |
Merge pull request #34753 from noqqe/master
Multiple users with hashedPassword is broken in mosquitto
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/mosquitto.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/mosquitto.nix b/nixos/modules/services/networking/mosquitto.nix index 273ca797b98d..d8135f4d0ffa 100644 --- a/nixos/modules/services/networking/mosquitto.nix +++ b/nixos/modules/services/networking/mosquitto.nix @@ -212,7 +212,7 @@ in '' + concatStringsSep "\n" ( mapAttrsToList (n: c: if c.hashedPassword != null then - "echo '${n}:${c.hashedPassword}' > ${cfg.dataDir}/passwd" + "echo '${n}:${c.hashedPassword}' >> ${cfg.dataDir}/passwd" else optionalString (c.password != null) "${pkgs.mosquitto}/bin/mosquitto_passwd -b ${cfg.dataDir}/passwd ${n} ${c.password}" ) cfg.users); |