Skip to content

Commit

Permalink
set GEOIP_ENABLED instead of GEOIP_DISABLED, because of change in log…
Browse files Browse the repository at this point in the history
…agent ...
  • Loading branch information
megastef committed Aug 27, 2016
1 parent ba215e8 commit 54289a1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ if [ -n "${LOGAGENT_PATTERNS}" ]; then
echo "$LOGAGENT_PATTERNS" > /etc/logagent/patterns.yml
fi

export GEOIP_DISABLED=${GEOIP_DISABLED:-"true"}
if [ "$GEOIP_ENABLED" == "true" ]; then
export GEOIP_DISABLED="false"
fi

if [[ "$GEOIP_DISABLED" == "false" && -n "${LOGSENE_TOKEN}" ]]; then
export GEOIP_ENABLED=${GEOIP_ENABLED:-"false"}
if [[ "$GEOIP_ENABLED" == "true" && -n "${LOGSENE_TOKEN}" ]]; then
echo "GeoIP lookups: enabled"
fi

Expand Down

0 comments on commit 54289a1

Please sign in to comment.