mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 16:05:42 -04:00
feat: add healthcheck api endpoint
This commit is contained in:
@@ -4,12 +4,14 @@
|
||||
# Store env variables in s6
|
||||
# #
|
||||
|
||||
IP_GATEWAY=$(/sbin/ip route|awk '/default/ { print $3 }')
|
||||
IP_CONTAINER=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
|
||||
ip_gateway=$(/sbin/ip route|awk '/default/ { print $3 }')
|
||||
ip_container=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
|
||||
|
||||
printf "$IP_GATEWAY" > /var/run/s6/container_environment/IP_GATEWAY
|
||||
printf "$IP_CONTAINER" > /var/run/s6/container_environment/IP_CONTAINER
|
||||
printf "$ip_gateway" > /var/run/s6/container_environment/IP_GATEWAY
|
||||
printf "$ip_container" > /var/run/s6/container_environment/IP_CONTAINER
|
||||
|
||||
export IP_GATEWAY=$ip_gateway
|
||||
export IP_GATEWAY=$ip_container
|
||||
|
||||
# #
|
||||
# install and startup for tvapp2
|
||||
|
||||
Reference in New Issue
Block a user