From 88994f785c660b4ca0ddcfa5930b8a1fda144fe6 Mon Sep 17 00:00:00 2001 From: encode42 Date: Sat, 1 Nov 2025 02:51:27 -0400 Subject: [PATCH] Switch mta-sts.txt generation to use printf for more consistent results --- packages/server/groupware/mta-sts.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server/groupware/mta-sts.nix b/packages/server/groupware/mta-sts.nix index 7e692a5..41ea0ba 100644 --- a/packages/server/groupware/mta-sts.nix +++ b/packages/server/groupware/mta-sts.nix @@ -22,12 +22,12 @@ in pkgs.runCommand "testdir" { } '' mkdir -p "$out/.well-known" - echo " - version: STSv1 - mode: enforce - max_age: 604800 - mx: ${tlsDomain} - " > "$out/.well-known/mta-sts.txt" + printf "%s\n" \ + "version: STSv1" \ + "mode: enforce" \ + "max_age: 604800" \ + "mx: ${tlsDomain}" + > "$out/.well-known/mta-sts.txt" '' } ''; -- 2.54.0