Skip to content

Commit

Permalink
[bitnami/redis] Fix issue with IP detection when mawk is used (#6870)
Browse files Browse the repository at this point in the history
* Fix an issue with IP (and hence master detection) not working if mawk was the default awk implementation in the redis container

* Bump chart version
  • Loading branch information
aureus1 authored Jul 7, 2021
1 parent f3329c0 commit 309c7c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitnami/redis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ name: redis
sources:
- https://github.com/bitnami/bitnami-docker-redis
- http://redis.io/
version: 14.6.5
version: 14.6.6
2 changes: 1 addition & 1 deletion bitnami/redis/templates/scripts-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data:
# If there are more than one IP, use the first IPv4 address
if [[ "$myip" = *" "* ]]; then
myip=$(echo $myip | awk '{if ( match($0,/([0-9]+\.){3}[0-9]+/) ) { print substr($0,RSTART,RLENGTH); } }')
myip=$(echo $myip | awk '{if ( match($0,/([0-9]+\.)([0-9]+\.)([0-9]+\.)[0-9]+/) ) { print substr($0,RSTART,RLENGTH); } }')
fi
not_exists_dns_entry() {
Expand Down

0 comments on commit 309c7c6

Please sign in to comment.