Skip to content

Commit

Permalink
Add support for multiple tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mart Roosmaa committed Sep 28, 2015
1 parent e52a962 commit cf554b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ fi
# Create spool directory
mkdir -p /var/spool/rsyslog

# Expand multiple tags, in the format of tag1:tag2:tag3, into several tag arguments
LOGGLY_TAG=$(echo $LOGGLY_TAG | sed 's/:/\\\\" tag=\\\\"/g')

# Replace variables
sed -i "s/LOGGLY_AUTH_TOKEN/$LOGGLY_AUTH_TOKEN/" /etc/rsyslog.conf
sed -i "s/LOGGLY_TAG/$LOGGLY_TAG/" /etc/rsyslog.conf
Expand Down

0 comments on commit cf554b4

Please sign in to comment.