mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Fix typos and add error handling for curl command
Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com>
This commit is contained in:
parent
8308b6254e
commit
4b0f43a902
@ -47,7 +47,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)
|
||||
EXTERNAL_IP=$(curl -s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null || echo "Unable to detect")
|
||||
ARC=$(lscpu | grep Arch | awk '{print $2}')
|
||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||
ARMv7l=https://get.docker.com | sh
|
||||
|
||||
@ -87,7 +87,7 @@ echo "Flushing network tracking table....."
|
||||
conntrack -F
|
||||
sleep 1
|
||||
|
||||
echo "Starting Dasdhboard....."
|
||||
echo "Starting Dashboard....."
|
||||
systemctl restart hbmon
|
||||
figlet "HBMonv2"
|
||||
echo "Done."
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
# Update containers / service clean/truncate/ and restart of services..
|
||||
|
||||
LOCAL_IP=$(ip a | grep inet | grep "ens18\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}')
|
||||
LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}')
|
||||
ARC=$(lscpu | grep Arch | awk '{print $2}')
|
||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||
|
||||
@ -57,7 +57,7 @@ echo " You will need to edit your config and then run the following command "
|
||||
echo ""
|
||||
echo " Type 'hblink-menu' for main menu "
|
||||
echo " Use the menu to edit your server / config "
|
||||
echo " Refur to the official HBlink Repo for more documentation "
|
||||
echo " Refer to the official HBlink Repo for more documentation "
|
||||
echo " https://github.com/HBLink-org/hblink3 "
|
||||
echo ""
|
||||
echo " Check out the docker installer of HBlink3 here "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user