blob: 3f2d8001293751aef2064d14761806f502009707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
## arg 1: the new package version
## arg 2: the old package version
post_install() {
cd /usr/share/selinux/refpolicy-arch/
echo ">>> Loading refpolicy-arch. Please wait ..."
/bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
/sbin/restorecon -r /
}
post_upgrade() {
cd /usr/share/selinux/refpolicy-arch/
echo ">>> Reloading refpolicy-arch. Please wait ..."
/bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
/sbin/restorecon -r /
}
post_remove() {
echo ">>> Removing refpolicy left-over files. Please wait ..."
/bin/rm -rf /etc/selinux/refpolicy-arch
}
|