about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-02-10 07:59:49 +0000
committerGitHub <noreply@github.com>2018-02-10 07:59:49 +0000
commit5be14cce39c9b7e167ba1d40d1e674c7a25b8701 (patch)
tree9ed00fd760a841ede3b13bfe9d75cfc5147af3ba /nixos
parentbf53dc68c256603f572fdb4a38275d22c68865d4 (diff)
parent7e76b127cd36d0310fdf98afd66e1999b4fc0d35 (diff)
downloadnixlib-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.nix2
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);