From a31a7b0ad1dc08e06e4ea30ea78a0858176c299a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 27 Dec 2023 06:50:37 +0100 Subject: [PATCH] add comment --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e35f752..555b7ba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,9 +147,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")