mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
Fix to selinux fix.
This commit is contained in:
parent
8b9a7d2c8f
commit
16b5274963
@ -121,16 +121,16 @@ case "$1" in
|
||||
chkconfig --add zerotier-one
|
||||
;;
|
||||
esac
|
||||
if [ -x /usr/bin/checkmodule -a -x /usr/bin/semodule_package -a -x /usr/bin/semodule ]; then
|
||||
if [ -x /usr/bin/checkmodule -a -x /usr/bin/semodule_package -a -x /usr/sbin/semodule ]; then
|
||||
rm -f /var/lib/zerotier-one/zerotier-one.mod
|
||||
/usr/bin/checkmodule -M -m -o /var/lib/zerotier-one/zerotier-one.mod /var/lib/zerotier-one/zerotier-one.te
|
||||
if [ -f /var/lib/zerotier-one/zerotier-one.pp ]; then
|
||||
rm -f /var/lib/zerotier-one/zerotier-one.pp
|
||||
/usr/bin/semodule_package -o /var/lib/zerotier-one/zerotier-one.pp -m /var/lib/zerotier-one/zerotier-one.mod
|
||||
/usr/bin/semodule -u /var/lib/zerotier-one/zerotier-one.pp
|
||||
/usr/sbin/semodule -u /var/lib/zerotier-one/zerotier-one.pp
|
||||
else
|
||||
/usr/bin/semodule_package -o /var/lib/zerotier-one/zerotier-one.pp -m /var/lib/zerotier-one/zerotier-one.mod
|
||||
/usr/bin/semodule -i /var/lib/zerotier-one/zerotier-one.pp
|
||||
/usr/sbin/semodule -i /var/lib/zerotier-one/zerotier-one.pp
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user