nixos/mattermost: unescape unicode characters in config.json
This commit is contained in:
parent
036bf4982a
commit
366be2ea32
@ -6,7 +6,9 @@ let
|
|||||||
|
|
||||||
cfg = config.services.mattermost;
|
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
|
mattermostConf = foldl recursiveUpdate defaultConfig
|
||||||
[ { ServiceSettings.SiteURL = cfg.siteUrl;
|
[ { ServiceSettings.SiteURL = cfg.siteUrl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user