mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-24 07:22:54 +00:00
just do not update selinux context for /srv/cache, /srv/git
This commit is contained in:
parent
830da7b444
commit
bf8bdb8685
1 changed files with 1 additions and 8 deletions
|
@ -146,15 +146,8 @@ done
|
||||||
|
|
||||||
%posttrans selinux
|
%posttrans selinux
|
||||||
if /usr/sbin/selinuxenabled ; then
|
if /usr/sbin/selinuxenabled ; then
|
||||||
if [ -f %{file_context_file_pre} ]; then
|
|
||||||
/usr/sbin/fixfiles -C %{file_context_file_pre} restore
|
|
||||||
rm -f %{file_context_file_pre}
|
|
||||||
else
|
|
||||||
%{_sbindir}/restorecon -Rv /srv/git/ || :
|
|
||||||
%{_sbindir}/restorecon -Rv /srv/cache/ || :
|
|
||||||
%{_sbindir}/restorecon -Rv /srv/web/ || :
|
%{_sbindir}/restorecon -Rv /srv/web/ || :
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
%postun selinux
|
%postun selinux
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue