mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
More reliable / simple way to list IPs
This commit is contained in:
parent
55068ff9a3
commit
98d5a272a4
1 changed files with 1 additions and 3 deletions
4
ynh-dev
4
ynh-dev
|
@ -167,9 +167,7 @@ function rebuild_ynhdev()
|
|||
function show_vm_ip()
|
||||
{
|
||||
assert_inside_vm
|
||||
# Print IP
|
||||
ip=$(/bin/ip a | grep 'inet 192.168' | awk -F " " '{print $2}' | awk -F "/" '{print $1}')
|
||||
echo "IP: $ip"
|
||||
hostname --all-ip-addresses | tr ' ' '\n'
|
||||
}
|
||||
|
||||
function use_git()
|
||||
|
|
Loading…
Add table
Reference in a new issue