nixos/mattermost: unescape unicode characters in config.json

This commit is contained in:
Jeff Slight 2019-09-19 16:00:27 -07:00
parent 036bf4982a
commit 366be2ea32

View File

@ -6,7 +6,9 @@ let
cfg = config.services.mattermost;
defaultConfig = builtins.fromJSON (readFile "${pkgs.mattermost}/config/config.json");
defaultConfig = builtins.fromJSON (builtins.replaceStrings [ "\\u0026" ] [ "&" ]
(readFile "${pkgs.mattermost}/config/config.json")
);
mattermostConf = foldl recursiveUpdate defaultConfig
[ { ServiceSettings.SiteURL = cfg.siteUrl;