Do not do preinstall if there is not previous install
This commit is contained in:
parent
8d13f53c05
commit
5d837b2d13
@ -190,7 +190,7 @@ if [ $? = 0 -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \
|
|||||||
fi;
|
fi;
|
||||||
|
|
||||||
%define preInstall() \
|
%define preInstall() \
|
||||||
if [ -s /etc/selinux/config ]; then \
|
if [ $1 -ne 1 ] && [ -s /etc/selinux/config ]; then \
|
||||||
. %{_sysconfdir}/selinux/config; \
|
. %{_sysconfdir}/selinux/config; \
|
||||||
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
||||||
if [ "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT} ]; then \
|
if [ "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT} ]; then \
|
||||||
|
Loading…
Reference in New Issue
Block a user