Mute chcon during safe-reload

Removes the error message on systems with SELinux enabled but without icinga2 policy.

fixes #11648
This commit is contained in:
Dirk Goetz 2016-08-15 13:15:56 +02:00 committed by Michael Friedrich
parent 8ced75b7d2
commit bc06ff18e5
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ OUTPUTFILE=`mktemp`
if type selinuxenabled >/dev/null 2>&1; then if type selinuxenabled >/dev/null 2>&1; then
if selinuxenabled; then if selinuxenabled; then
chcon -t icinga2_tmp_t $OUTPUTFILE chcon -t icinga2_tmp_t $OUTPUTFILE >/dev/null 2>&1
fi fi
fi fi