From 16b5274963591e4119132257ea629edf19ac2db3 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 28 Feb 2022 16:10:44 -0500 Subject: [PATCH] Fix to selinux fix. --- zerotier-one.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerotier-one.spec b/zerotier-one.spec index edcbc6d06..b5f2e42f7 100644 --- a/zerotier-one.spec +++ b/zerotier-one.spec @@ -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