mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixos/postfix: allow dollar parameters in lists (#30612)
This commit is contained in:
parent
48d2b58417
commit
c522aaafde
@ -55,7 +55,13 @@ following incompatible changes:</para>
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para></para>
|
<para>
|
||||||
|
Dollar signs in options under <option>services.postfix</option> are
|
||||||
|
passed verbatim to Postfix, which will interpret them as the beginning of
|
||||||
|
a parameter expression. This was already true for string-valued options
|
||||||
|
in the previous release, but not for list-valued options. If you need to
|
||||||
|
pass literal dollar signs through Postfix, double them.
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ let
|
|||||||
|
|
||||||
mainCf = let
|
mainCf = let
|
||||||
escape = replaceStrings ["$"] ["$$"];
|
escape = replaceStrings ["$"] ["$$"];
|
||||||
mkList = items: "\n " + concatMapStringsSep "\n " escape items;
|
mkList = items: "\n " + concatStringsSep "\n " items;
|
||||||
mkVal = value:
|
mkVal = value:
|
||||||
if isList value then mkList value
|
if isList value then mkList value
|
||||||
else " " + (if value == true then "yes"
|
else " " + (if value == true then "yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user