1
0
Fork 0
mirror of synced 2024-07-01 19:01:09 -04: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 79043cb4e5
commit b4e76f2ad3
No known key found for this signature in database
GPG key ID: 3DFF94D0127B09D6

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