check_mrpe not working with busybox sed (librenms docker)
clyso opened this issue · 1 comments
clyso commented
when running check_mrpe inside container (busybox sed) I receive following error:
sed: unterminated {
when running on container host (gnu sed) works as expected
Deleted user commented
following change fixed the problem:
instead of
sed '/^<<<mrpe>>>/,/^<<</{//!b};d'
use
sed '/^<<<mrpe>>>/,/^<<</{//!b;};d'
summary: add a semikolon before the closing bracket