[icinga-checkins] icinga.org: icinga2/fix/chcon-11648: Mute chcon during safe-reload

git at icinga.org git at icinga.org
Mon Aug 15 13:20:49 CEST 2016


Module: icinga2
Branch: fix/chcon-11648
Commit: 5e628f061c2bc5b497f4c7129971ec24ed057d46
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5e628f061c2bc5b497f4c7129971ec24ed057d46

Author: Dirk Goetz <dirk.goetz at netways.de>
Date:   Mon Aug 15 13:15:56 2016 +0200

Mute chcon during safe-reload
to remove error message on systems with SELinux enabled but without icinga2 policy

refs #11648

---

 etc/initsystem/safe-reload |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/initsystem/safe-reload b/etc/initsystem/safe-reload
index afacc9e..2fd44b7 100644
--- a/etc/initsystem/safe-reload
+++ b/etc/initsystem/safe-reload
@@ -14,7 +14,7 @@ OUTPUTFILE=`mktemp`
 
 if type selinuxenabled >/dev/null 2>&1; then
 	if selinuxenabled; then
-		chcon -t icinga2_tmp_t $OUTPUTFILE
+		chcon -t icinga2_tmp_t $OUTPUTFILE >/dev/null 2>&1
 	fi
 fi
 



More information about the icinga-checkins mailing list