Skip to content

Commit

Permalink
fix incorrect env handling
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalaydrus committed Jul 10, 2023
1 parent 0c434a2 commit 32a8bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
trap2json -generate /etc/trap2json/snmptrapd.conf
shopt -s lastpipe
if [[ -z "${SNMPTRAPD_DEBUG}" ]]; then
snmptrapd -M +/etc/trap2json/mibs -m ALL -Lo -Lf /var/log/trap2json/trap2json.log -OnUx -f -C -c /etc/trap2json/snmptrapd.conf | exec trap2json
else
snmptrapd -M +/etc/trap2json/mibs -m ALL -Lo -OnUx -f -C -c /etc/trap2json/snmptrapd.conf | exec trap2json
else
snmptrapd -M +/etc/trap2json/mibs -m ALL -Lo -Lf /var/log/trap2json/trap2json.log -OnUx -f -C -c /etc/trap2json/snmptrapd.conf | exec trap2json
fi

0 comments on commit 32a8bee

Please sign in to comment.