Просмотр исходного кода

IPV6: Fallback Link for IPV4/IPV6 address

asmcc 2 лет назад
Родитель
Сommit
6d7640a9cd
2 измененных файлов с 12 добавлено и 2 удалено
  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
 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
 echo -e -n " 	Username:   admin
 	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
 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
 echo -e -n " 	Username:   admin
 	Password:   $displaypass