mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-30 21:20:59 +02:00
11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
|
#!/usr/bin/with-contenv sh
|
||
|
|
||
|
#
|
||
|
# This script will determine the network IP of the container.
|
||
|
#
|
||
|
# Return format should be a single IP address.
|
||
|
#
|
||
|
|
||
|
# Default to using the value of the $HOSTNAME ENV variable.
|
||
|
getent hosts ${1:-$HOSTNAME} | awk '{print $1}'
|