just do not update selinux context for /srv/cache, /srv/git

This commit is contained in:
clime 2017-02-14 06:08:06 +01:00
parent 830da7b444
commit bf8bdb8685

View file

@ -146,14 +146,7 @@ done
%posttrans selinux %posttrans selinux
if /usr/sbin/selinuxenabled ; then if /usr/sbin/selinuxenabled ; then
if [ -f %{file_context_file_pre} ]; then %{_sbindir}/restorecon -Rv /srv/web/ || :
/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/ || :
fi
fi fi
%postun selinux %postun selinux