1
0
Fork 0
mirror of synced 2024-11-18 15:15:35 -05:00

template ro removes write permission for all

Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
Tin Lai 2023-06-06 09:23:20 +10:00
parent 4f8554ba29
commit d7669f2256

2
yadm
View file

@ -540,7 +540,7 @@ function move_file() {
mv -f "$temp_file" "$output"
copy_perms "$input" "$output"
[ "$(config --bool yadm.template-read-only)" == "true" ] && chmod -w "$output"
[ "$(config --bool yadm.template-read-only)" == "true" ] && chmod a-w "$output"
}
# ****** yadm Commands ******