datavol: Only set SELinux label of root directory
Restoring the SELinux label of a mount point is really only necessary for a band new filesystem, which will have no label at all. In other cases, changing the context is probably neither necessary nor desirable, as the existing data is potentially labelled correctly already. Changing the label on on only the root directory should be sufficient to ensure applications run correctly with newly-provisioned filesystems, since they only have one directory anyway, without impacting too much for existing filesystems.frigate-exporter
parent
34fcaa52ef
commit
9ae88a5f36
|
@ -48,5 +48,5 @@
|
|||
|
||||
- name: fix data volume selinux context
|
||||
command:
|
||||
restorecon -RF {{ item.mountpoint }}
|
||||
restorecon -F {{ item.mountpoint }}
|
||||
loop: '{{ data_volumes }}'
|
||||
|
|
Loading…
Reference in New Issue