POSTIN
/bin/sh
# SELinux probably needs work.
# Set SELinux file context in the policy
semanage fcontext -a -t httpd_sys_content_t '/usr/share/phpTodo(/.*)?' 2>/dev/null || :
semanage fcontext -a -t httpd_sys_content_t '/etc/phpTodo(/.*)?' 2>/dev/null || :
semanage fcontext -a -t httpd_sys_content_t '/var/cache/phpTodo(/.*)?' 2>/dev/null || :
# Actually change the context
restorecon -R /usr/share/phpTodo/ || :
restorecon -R /etc/phpTodo/ || :
restorecon -R /var/cache/phpTodo/ || :
POSTUN
/bin/sh
# SELinux support
if [ $1 -eq 0 ]; then # final removal
semanage fcontext -d -t httpd_sys_content_t '/usr/share/phpTodo(/.*)?' 2>/dev/null || :
semanage fcontext -d -t httpd_sys_content_t '/etc/phpTodo(/.*)?' 2>/dev/null || :
semanage fcontext -d -t httpd_sys_content_t '/var/cache/phpTodo(/.*)?' 2>/dev/null || :
fi