mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-04-27 04:04:03 +01:00
debian converted to s6, aline files moved
This commit is contained in:
10
s6/debian-root/usr/bin/host-ip
Executable file
10
s6/debian-root/usr/bin/host-ip
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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}'
|
||||
Reference in New Issue
Block a user