Browse Source

IPV6: Fallback Link for IPV4/IPV6 address

asmcc 2 years ago
parent
commit
6d7640a9cd
2 changed files with 12 additions and 2 deletions
  1. 6 1
      install/hst-install-debian.sh
  2. 6 1
      install/hst-install-ubuntu.sh

+ 6 - 1
install/hst-install-debian.sh

@@ -2168,7 +2168,12 @@ Ready to get started? Log in using the following credentials:
 
 
 	Admin URL:  https://$servername:$port" > $tmpfile
 	Admin URL:  https://$servername:$port" > $tmpfile
 if [ "$host_ip" != "$ip" ]; then
 if [ "$host_ip" != "$ip" ]; then
-	echo "	Backup URL: https://$ip:$port" >> $tmpfile
+	if [ -n "$ip" ]; then
+		echo "	Backup URL: https://$ip:$port" >> $tmpfile
+	fi
+	if [ -n "$ipv6" ]; then
+		echo "	Backup URL: https://[$ipv6]:$port" >> $tmpfile
+	fi
 fi
 fi
 echo -e -n " 	Username:   admin
 echo -e -n " 	Username:   admin
 	Password:   $displaypass
 	Password:   $displaypass

+ 6 - 1
install/hst-install-ubuntu.sh

@@ -2239,7 +2239,12 @@ Ready to get started? Log in using the following credentials:
 
 
 	Admin URL:  https://$servername:$port" > $tmpfile
 	Admin URL:  https://$servername:$port" > $tmpfile
 if [ "$host_ip" != "$ip" ]; then
 if [ "$host_ip" != "$ip" ]; then
-	echo "	Backup URL: https://$ip:$port" >> $tmpfile
+	if [ -n "$ip" ]; then
+		echo "	Backup URL: https://$ip:$port" >> $tmpfile
+	fi
+	if [ -n "$ipv6" ]; then
+		echo "	Backup URL: https://[$ipv6]:$port" >> $tmpfile
+	fi
 fi
 fi
 echo -e -n " 	Username:   admin
 echo -e -n " 	Username:   admin
 	Password:   $displaypass
 	Password:   $displaypass