From 4f8554ba29ff6a36f845031ee21df9fca6eae765 Mon Sep 17 00:00:00 2001 From: Tin Lai Date: Mon, 29 May 2023 14:32:37 +1000 Subject: [PATCH] add config for yadm to create read-only template output Signed-off-by: Tin Lai --- yadm | 1 + 1 file changed, 1 insertion(+) diff --git a/yadm b/yadm index 09da278..2a4e1c1 100755 --- a/yadm +++ b/yadm @@ -540,6 +540,7 @@ function move_file() { mv -f "$temp_file" "$output" copy_perms "$input" "$output" + [ "$(config --bool yadm.template-read-only)" == "true" ] && chmod -w "$output" } # ****** yadm Commands ******