Skip to content

Commit

Permalink
Change: Allow overriding LOG_CMD for sync script
Browse files Browse the repository at this point in the history
Allow to override the LOG_CMD for greenbone-feed-sync
and log to stderror by default too.

(cherry picked from commit ef23ad7)
  • Loading branch information
bjoernricks authored and mergify[bot] committed May 20, 2022
1 parent 5c9e442 commit 683b7e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/greenbone-feed-sync.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ PORT=24
# log messages.
SCRIPT_NAME="greenbone-feed-sync"

# LOG_CMD defines the command to use for logging. To have logger log to stderr
# as well as syslog, add "-s" here.
LOG_CMD="logger -t $SCRIPT_NAME"
# LOG_CMD defines the command to use for logging. To have logger log to syslog
# only, remove "-s" here.
if [ -z "$LOG_CMD" ]
then
LOG_CMD="logger -t $SCRIPT_NAME -s"
fi


# LOCK_FILE is the name of the file used to lock the feed during sync or update.
if [ -z "$LOCK_FILE" ]
Expand Down

0 comments on commit 683b7e1

Please sign in to comment.