diff --git a/scripts/install b/scripts/install index 0dfa1b8..4e4eaf0 100644 --- a/scripts/install +++ b/scripts/install @@ -96,9 +96,11 @@ systemctl restart dnsmasq ynh_store_file_checksum --file="/etc/dnsmasq.d/$app" +# get IPv4 for the AGH config file ipv4_route_output=$(echo "$(ip -4 route get 1.2.3.4 2> /dev/null)" | head -n1 | head -n1) ipv4_addr=$(process_ips "$ipv4_route_output") +# get IPv6 for the AGH config file ipv6_route_output=$(echo "$(ip -6 route get ::1.2.3.4 2> /dev/null)" | head -n1) ipv6_addr=$(process_ips "$ipv6_route_output")