File rocketgit.spec.in changed (mode: 100644) (index cbd7d45..ad2e733) |
... |
... |
getent passwd rocketgit >/dev/null || useradd -r -g rocketgit -s /bin/bash -m -d |
37 |
37 |
%post |
%post |
38 |
38 |
for type in %{selinux_variants} |
for type in %{selinux_variants} |
39 |
39 |
do |
do |
|
40 |
|
[ -r /tmp/rgsdebug ] && echo "Installing module ${type}..." |
40 |
41 |
/usr/sbin/semodule -s ${type} -i \ |
/usr/sbin/semodule -s ${type} -i \ |
41 |
42 |
@USR_SHARE@/selinux/${type}/@PRJ@.pp &> /dev/null || : |
@USR_SHARE@/selinux/${type}/@PRJ@.pp &> /dev/null || : |
42 |
43 |
done |
done |
|
44 |
|
[ -r /tmp/rgsdebug ] && echo "fixfiles -R..." |
43 |
45 |
/sbin/fixfiles -R @PRJ@ restore || : |
/sbin/fixfiles -R @PRJ@ restore || : |
|
46 |
|
# restorecon is needed because fixfiles -R will not restore the locks! |
|
47 |
|
[ -r /tmp/rgsdebug ] && echo "restorecon -R..." |
|
48 |
|
/sbin/restorecon -R @VAR_LIB@/@PRJ@ || : |
44 |
49 |
|
|
45 |
50 |
if [ $1 -ne 0 ]; then |
if [ $1 -ne 0 ]; then |
46 |
51 |
/sbin/service xinetd reload &>/dev/null || : |
/sbin/service xinetd reload &>/dev/null || : |
|
... |
... |
fi |
51 |
56 |
if [ $1 = 0 ]; then |
if [ $1 = 0 ]; then |
52 |
57 |
for type in %{selinux_variants} |
for type in %{selinux_variants} |
53 |
58 |
do |
do |
54 |
|
/usr/sbin/semodule -s ${type} -r @PRJ@.pp &> /dev/null || : |
|
|
59 |
|
/usr/sbin/semodule -s ${type} -r @PRJ@ &> /dev/null || : |
55 |
60 |
done |
done |
56 |
61 |
/sbin/fixfiles -R @PRJ@ restore || : |
/sbin/fixfiles -R @PRJ@ restore || : |
57 |
62 |
fi |
fi |