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:
parent
56b9a133ac
commit
29cd1df5c3
1 changed files with 5 additions and 1 deletions
|
@ -34,6 +34,8 @@ set__open_port_53() {
|
|||
|
||||
# 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
|
||||
ipv4_interface="$(get_network_interface 4)"
|
||||
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)
|
||||
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_agh_ip_config
|
||||
|
||||
|
@ -74,7 +78,7 @@ set__dns_over_https() {
|
|||
# save the new setting
|
||||
ynh_app_setting_set "$app" --key=dns_over_https --value="$dns_over_https"
|
||||
}
|
||||
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue