Skip to content

Commit

Permalink
fix entrypoint, case insensitive grep
Browse files Browse the repository at this point in the history
  • Loading branch information
eufebius committed Aug 10, 2023
1 parent 4ae1b06 commit cd52633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ if [ "$#" -eq 0 ];then
unbound-anchor -a ${ROOT_TRUST_ANCHOR_FILE} -v
chown unbound:unbound ${ROOT_TRUST_ANCHOR_FILE}
curl -Ss -m 10 https://www.internic.net/domain/named.root -o /tmp/hints
if [ $(grep ROOT-SERVERS /tmp/hints | wc -l) -gt 0 ];then
if [ $(grep -i ROOT-SERVERS /tmp/hints | wc -l) -gt 0 ];then
mv /tmp/hints ${ROOT_HINTS_FILE}
fi
exec unbound -c ${ROOT_CONF_DIR}/unbound.conf
else
else
exec "$@"
fi

0 comments on commit cd52633

Please sign in to comment.