From e4aabd3de6917e8263252ff1e5be3ce8d725fe9a Mon Sep 17 00:00:00 2001 From: Jany Doe Date: Sat, 9 Nov 2024 22:39:31 +0000 Subject: [PATCH] remove new line character if use agenix --- mail-server/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail-server/common.nix b/mail-server/common.nix index 4e301c5..813a5f4 100644 --- a/mail-server/common.nix +++ b/mail-server/common.nix @@ -62,7 +62,7 @@ in cat ${file} > ${destination} echo -n '${prefix}' >> ${destination} - cat ${passwordFile} >> ${destination} + cat ${passwordFile} | tr -d '\n' >> ${destination} echo -n '${suffix}' >> ${destination} chmod 600 ${destination} '';