POSTIN
/bin/sh
( # New File context semanage fcontext -a -s system_u -t httpd_log_t -r s0 "/var/log/ocsinventory-server(/.*)?" # files created by app restorecon -R /var/log/ocsinventory-server ) &>/dev/null ||:
POSTUN
/bin/sh
if [ "$1" -eq "0" ]; then # Remove the File Context semanage fcontext -d "/var/log/ocsinventory-server(/.*)?" &>/dev/null || : fi