1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

add 2 ynh_print_info

This commit is contained in:
OniriCorpe 2023-12-31 00:45:36 +01:00
parent 56b9a133ac
commit 29cd1df5c3

View file

@ -34,6 +34,8 @@ set__open_port_53() {
# regenerate config, needed to add or delete public IPs following the user's choice # regenerate config, needed to add or delete public IPs following the user's choice
ynh_print_info --message="Obtaining IP addresses for the AGH config file..."
# get the name of the network interface in IPv4 and IPv6 # get the name of the network interface in IPv4 and IPv6
ipv4_interface="$(get_network_interface 4)" ipv4_interface="$(get_network_interface 4)"
ipv6_interface="$(get_network_interface 6)" ipv6_interface="$(get_network_interface 6)"
@ -45,6 +47,8 @@ set__open_port_53() {
# the 'sed' is used to get rid of the network prefix ('/64' for example) # the 'sed' is used to get rid of the network prefix ('/64' for example)
ipv6_addr=$(process_ips "$(ip -6 address show "$ipv6_interface" 2> /dev/null | grep inet | sed 's&/.*&&')") ipv6_addr=$(process_ips "$(ip -6 address show "$ipv6_interface" 2> /dev/null | grep inet | sed 's&/.*&&')")
ynh_print_info --message="Updating the AGH config file..."
# update the IP adresses in the AGH config file # update the IP adresses in the AGH config file
update_agh_ip_config update_agh_ip_config