Skip to content

Commit

Permalink
Merge pull request #12 from SOBAZAAR/multiple-tags
Browse files Browse the repository at this point in the history
Add support for multiple tags.
  • Loading branch information
jonathan-short committed Sep 28, 2015
2 parents 1484edb + cf554b4 commit 3b863f7
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 @@ -25,6 +25,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 3b863f7

Please sign in to comment.