!41 move autorelabel creating to postun on LTS

From: @HuaxinLuGitee
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2020-11-24 19:53:58 +08:00 committed by Gitee
commit 17ee29acf4

View File

@ -12,7 +12,7 @@
Summary: SELinux policy configuration
Name: selinux-policy
Version: 3.14.2
Release: 59
Release: 60
License: GPLv2+
URL: https://github.com/fedora-selinux/selinux-policy/
@ -388,8 +388,6 @@ SELINUXTYPE=targeted
else
. %{_sysconfdir}/selinux/config
fi
touch /.autorelabel
exit 0
%postun
@ -400,6 +398,8 @@ if [ $1 = 0 ]; then
else
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' %{_sysconfdir}/selinux/config
fi
else
touch /.autorelabel
fi
exit 0
@ -731,6 +731,9 @@ exit 0
%endif
%changelog
* Tue Nov 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.14.2-60
- move autorelabel creating to postun
* Fri Nov 6 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.14.2-59
- create autorelabel file after install