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()
|
function show_vm_ip()
|
||||||
{
|
{
|
||||||
assert_inside_vm
|
assert_inside_vm
|
||||||
# Print IP
|
hostname --all-ip-addresses | tr ' ' '\n'
|
||||||
ip=$(/bin/ip a | grep 'inet 192.168' | awk -F " " '{print $2}' | awk -F "/" '{print $1}')
|
|
||||||
echo "IP: $ip"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function use_git()
|
function use_git()
|
||||||
|
|
Loading…
Add table
Reference in a new issue