mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
add new way to get IPV4
This commit is contained in:
parent
9503df8899
commit
ccc312226c
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Retrieve arguments
|
||||
ipv4=$(ifconfig | grep "inet addr:" | sed '1!d' | cut -d : -f 2 | cut -b -14)
|
||||
#ipv4=$(ifconfig | grep "inet addr:" | sed '1!d' | cut -d : -f 2 | cut -b -14)
|
||||
#ipv4=$(traceroute -4 maelstro.me | grep ms | cut -d " " -f 4)
|
||||
domain=$1
|
||||
port=$2
|
||||
sync_node=$3
|
||||
|
|
Loading…
Reference in a new issue