How to set file mode but ignore content? #156
-
Is it possible? My first attempt was something like the following SetFileProperty /etc/file mode 644
IgnorePath /etc/file But that didn't work (and going through the code it was clear it shouldn't). BTW, after this failed attempt, it seems The error was "src/apply.bash: line 658: file_owners[$file]: bad array subscript", and debugging a bit showed that Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could do this by using the content of the file on the system: cat /etc/file > "$(CreateFile /etc/file)"
Whoops,
Yes, not clearing |
Beta Was this translation helpful? Give feedback.
You could do this by using the content of the file on the system:
Whoops,
"$tmp_dir"/file-owners
indeed should have been cleared on every run. Fixed in 1c62749.Yes, not clearing
$tmp_dir
enables--skip-inspection
and--skip-config
.