Skip to content

Commit

Permalink
rpm: Mute semodule in postun script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
b-ranto committed May 23, 2016
1 parent bef5ea7 commit 3c104b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ if [ $1 -eq 0 ]; then
cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre

# 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
if ! /usr/sbin/selinuxenabled ; then
Expand Down

0 comments on commit 3c104b1

Please sign in to comment.