gluon-status-page: suppress "broken pipe" syslog message

Some HTTP endpoints were writing annoying "broken pipe" messages to stderr.
This commit is contained in:
Matthias Schiffer 2018-03-27 19:43:20 +02:00
parent 946b42e234
commit 6dc9369715
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,6 @@ badrequest() {
exit 1
}
batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" || badrequest
( batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" ) 2>/dev/null || badrequest
exec /usr/bin/gluon-neighbour-info -s neighbour -i "$QUERY_STRING" -d ff02::2:1001 -p 1001 -r nodeinfo

View File

@ -6,7 +6,7 @@ badrequest() {
exit 1
}
batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" || badrequest
( batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" ) 2>/dev/null || badrequest
CMD="exec /lib/gluon/status-page/providers/stations '$QUERY_STRING'"