Update hblink3-docker-install.sh

Add IP
This commit is contained in:
M0VUB 2022-02-01 02:47:01 +00:00 committed by GitHub
parent 1cab8401c1
commit b1f3d21c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ then
fi
DIRDIR=$(pwd)
LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}')
EXTERNAL_IP=$(curl https://ipecho.net/plain)
ARC=$(lscpu | grep Arch | awk '{print $2}')
VERSION=$(sed 's/\..*//' /etc/debian_version)
ARMv7l=https://get.docker.com | sh
@ -621,7 +622,9 @@ echo " docker-compose up -d "
echo " More documentation can be found on the HBlink3 git repo "
echo " https://github.com/ShaYmez/hblink3-docker-install "
echo ""
echo" Your local IP is $LOCAL_IP "
echo " Your local IP is $LOCAL_IP "
echo " Your external IP is $EXTERNAL_IP "
echo " Your running on $ARC with Debian $VERSION "
echo ""
echo " Thanks for using this script. "
echo " Copyright © 2022 Shane Daley - M0VUB "