mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
template ro removes write permission for all
Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
parent
4f8554ba29
commit
d7669f2256
2
yadm
2
yadm
@ -540,7 +540,7 @@ function move_file() {
|
|||||||
|
|
||||||
mv -f "$temp_file" "$output"
|
mv -f "$temp_file" "$output"
|
||||||
copy_perms "$input" "$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 ******
|
# ****** yadm Commands ******
|
||||||
|
Loading…
Reference in New Issue
Block a user