Skip to content

Commit

Permalink
Merge pull request #53 from malscent/MB-47142-SpecifyDisk
Browse files Browse the repository at this point in the history
Remove curl command and replace with established usage of wget
  • Loading branch information
malscent authored May 24, 2022
2 parents 6327e37 + 8574aa5 commit cb44b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ LOCAL_IP=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([
HOST=$(hostname) || hostnamectl
# Do a reverse DNS lookup on the cluster host and see if it is this local ip
PUBLIC_HOST_DNS=$(dig +short "$CLUSTER_HOST")
PUBLIC_IP=$(curl ifconfig.me)
PUBLIC_IP=$(wget -nv --quiet -O - ifconfig.me)
__log_debug "Hostname: ${HOST}"
__log_debug "Local IP: ${LOCAL_IP}"
__log_debug "ReverseDNS: ${PUBLIC_HOST_DNS}"
Expand Down

0 comments on commit cb44b32

Please sign in to comment.