mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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:
parent
8ced75b7d2
commit
bc06ff18e5
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user