openvas-scanner script use a logger option not available on Alpine Linux
The new openvas-scanner package submitted in edge today have a script that is using an option not present on Alpine Linux :
logger: unrecognized option: socket-error=off
BusyBox v1.30.1 (2019-02-16 10:01:46 UTC) multi-call binary.
Usage: logger [OPTIONS] [MESSAGE]
Write MESSAGE (or stdin) to syslog
-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)
Here is a patch for that :
diff --git a/tools/greenbone-nvt-sync.in b/tools/greenbone-nvt-sync.in
index d4f95c5..f507d7e 100644
--- a/tools/greenbone-nvt-sync.in
+++ b/tools/greenbone-nvt-sync.in
@@ -92,7 +92,7 @@ check_logger () {
logger --socket-error=on -p daemon.info -t $SCRIPT_NAME "Checking logger" --no-act 1>/dev/null 2>&1
if [ $? -gt 0 ]
then
- LOG_CMD="logger --socket-error=off -s -t $SCRIPT_NAME"
+ LOG_CMD="logger -s -t $SCRIPT_NAME"
$LOG_CMD -p daemon.warning "The log facility is not working as expected. All messages will be written to the standard error stream."
fi
}
(from redmine: issue id 10203, created on 2019-04-06, closed on 2019-06-19)
- Changesets:
- Revision 2c6d6191 by Francesco Colista on 2019-04-07T06:40:07Z:
community/openvas-scanner: add dependency to make logger work fully. Fixes #10203