debian/libselinux1.postinst
raw| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | |
| 4 | if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 3.8-2 ; then |
| 5 | # rebuild for new file context.bin format |
| 6 | /usr/libexec/libselinux/selinux_compile_fcontexts || true |
| 7 | fi |
| 8 | |
| 9 | if [ "$1" = triggered ]; then |
| 10 | # rebuild for (possible) new libpcre2 version |
| 11 | /usr/libexec/libselinux/selinux_compile_fcontexts || true |
| 12 | exit 0 |
| 13 | fi |
| 14 | |
| 15 | #DEBHELPER# |