mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
debug ip
This commit is contained in:
parent
29cd1df5c3
commit
dee489790d
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ ipv4_addr=$(process_ips "$(ip -4 address show "$ipv4_interface" 2> /dev/null | g
|
|||
# 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&/.*&&')")
|
||||
|
||||
# debug
|
||||
ynh_print_info --message="IPv4: $ipv4_addr"
|
||||
ynh_print_info --message="IPv6: $ipv6_addr"
|
||||
|
||||
# update the IP adresses in the AGH config file
|
||||
update_agh_ip_config
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue