1
0
mirror of https://github.com/ceph/ceph synced 2025-03-25 11:48:05 +00:00

rpm: Mute semodule in postun script

Currently, we don't mute the semodule output in postun script. This
results in the following message when removing ceph-selinux package:

libsemanage.semanage_direct_remove_key: Removing last ceph module (no
other ceph module exists at another priority).

The fix is to simply mute the output of the command.

Signed-off-by: Boris Ranto <branto@redhat.com>
This commit is contained in:
Boris Ranto 2016-05-20 08:09:42 +02:00
parent bef5ea7833
commit 3c104b1065

View File

@ -1467,7 +1467,7 @@ if [ $1 -eq 0 ]; then
cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre
# Remove the module # Remove the module
/usr/sbin/semodule -n -r ceph /usr/sbin/semodule -n -r ceph > /dev/null 2>&1
# Reload the policy if SELinux is enabled # Reload the policy if SELinux is enabled
if ! /usr/sbin/selinuxenabled ; then if ! /usr/sbin/selinuxenabled ; then