This commit is contained in:
Kroese 2023-04-22 17:37:38 +02:00 committed by GitHub
parent e2689b25e9
commit a0b17a2af8

View File

@ -185,9 +185,9 @@ GATEWAY=$(ip r | grep default | awk '{print $3}')
if [ "$DEBUG" = "Y" ]; then if [ "$DEBUG" = "Y" ]; then
IP=$(ip address show dev "${VM_NET_DEV}" | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/) IP=$(ip address show dev "${VM_NET_DEV}" | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/)
echo "Info: Container IP is ${IP} with gateway ${GATEWAY}" echo "Info: Container IP is ${IP} with gateway ${GATEWAY}" && echo
ifconfig ifconfig && echo
ip route ip route && echo
fi fi