From: Boris Ranto Date: Fri, 20 May 2016 06:09:42 +0000 (+0200) Subject: rpm: Mute semodule in postun script X-Git-Tag: v10.2.2~38^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab1f65dd0429647c30fdae1dd97ff6f393dbc1a8;p=ceph.git 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 (cherry picked from commit 3c104b106540fabdba43e0d04a3828d77f83e89d) --- diff --git a/ceph.spec.in b/ceph.spec.in index 233af941676c..d8d45e793da7 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1456,7 +1456,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