Skip to content

Commit

Permalink
Fixes omi-logrotate and omi-selinux remove issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpingYang001 committed Apr 6, 2021
1 parent e4d7248 commit c344617
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Unix/installbuilder/datafiles/Linux.data
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,15 @@ fi
ConfigureOmiService

%Postuninstall_1500
if [ -e /usr/sbin/semodule ]; then
if [ ! -z "$(/usr/sbin/semodule -l | grep omi-logrotate)" ]; then
echo "Removing selinux policy module for omi-logrotate ..."
/usr/sbin/semodule -r omi-logrotate
if ${{PERFORMING_UPGRADE_NOT}}; then
if [ -e /usr/sbin/semodule ]; then
if [ ! -z "$(/usr/sbin/semodule -l | grep omi-logrotate)" ]; then
echo "Removing selinux policy module for omi-logrotate ..."
/usr/sbin/semodule -r omi-logrotate
fi
if [ ! -z "$(/usr/sbin/semodule -l | grep omi-selinux)" ]; then
echo "Removing selinux policy module for omi-selinux ..."
/usr/sbin/semodule -r omi-selinux
fi
fi
fi

0 comments on commit c344617

Please sign in to comment.