mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix install script using IPv6 CIDR notation (#1570)
This commit is contained in:
parent
e9d81fc883
commit
ab1a6d8829
1 changed files with 5 additions and 5 deletions
|
@ -368,8 +368,8 @@ useIPv6dialog() {
|
||||||
# Determine type of found IPv6 addresses
|
# Determine type of found IPv6 addresses
|
||||||
for i in "${IPV6_ADDRESSES[@]}"; do
|
for i in "${IPV6_ADDRESSES[@]}"; do
|
||||||
result=$(testIPv6 "$i")
|
result=$(testIPv6 "$i")
|
||||||
[[ "${result}" == "ULA" ]] && ULA_ADDRESS="$i"
|
[[ "${result}" == "ULA" ]] && ULA_ADDRESS="${i%/*}"
|
||||||
[[ "${result}" == "GUA" ]] && GUA_ADDRESS="$i"
|
[[ "${result}" == "GUA" ]] && GUA_ADDRESS="${i%/*}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Determine which address to be used: Prefer ULA over GUA or don't use any if none found
|
# Determine which address to be used: Prefer ULA over GUA or don't use any if none found
|
||||||
|
@ -1495,7 +1495,7 @@ main() {
|
||||||
welcomeDialogs
|
welcomeDialogs
|
||||||
# Create directory for Pi-hole storage
|
# Create directory for Pi-hole storage
|
||||||
mkdir -p /etc/pihole/
|
mkdir -p /etc/pihole/
|
||||||
|
|
||||||
stop_service dnsmasq
|
stop_service dnsmasq
|
||||||
if [[ ${INSTALL_WEB} == true ]]; then
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
stop_service lighttpd
|
stop_service lighttpd
|
||||||
|
@ -1575,7 +1575,7 @@ main() {
|
||||||
if [[ "${useUpdateVars}" == false ]]; then
|
if [[ "${useUpdateVars}" == false ]]; then
|
||||||
displayFinalMessage "${pw}"
|
displayFinalMessage "${pw}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${INSTALL_WEB} == true ]]; then
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
if (( ${#pw} > 0 )) ; then
|
if (( ${#pw} > 0 )) ; then
|
||||||
echo -e " ${INFO} Web Interface password: ${COL_LIGHT_GREEN}${pw}${COL_NC}
|
echo -e " ${INFO} Web Interface password: ${COL_LIGHT_GREEN}${pw}${COL_NC}
|
||||||
|
@ -1597,7 +1597,7 @@ main() {
|
||||||
else
|
else
|
||||||
INSTALL_TYPE="Update"
|
INSTALL_TYPE="Update"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n ${INFO} The install log is located at: /etc/pihole/install.log
|
echo -e "\n ${INFO} The install log is located at: /etc/pihole/install.log
|
||||||
${COL_LIGHT_GREEN}${INSTALL_TYPE} Complete! ${COL_NC}"
|
${COL_LIGHT_GREEN}${INSTALL_TYPE} Complete! ${COL_NC}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue