docker-pi-hole/src/s6/debian-root/usr/bin/host-ip

11 lines
252 B
Plaintext
Executable File

#!/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}'