1
0
Fork 0
mirror of synced 2024-12-21 22:21:08 -05:00

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