add config for yadm to create read-only template output

Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
Tin Lai 2023-05-29 14:32:37 +10:00
parent 76ce3defea
commit 4f8554ba29
1 changed files with 1 additions and 0 deletions

1
yadm
View File

@ -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 ******