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
1 changed files with 1 additions and 1 deletions

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