1
0
Fork 0
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:
Moul 2015-06-13 09:40:35 -04:00
parent 9503df8899
commit ccc312226c

View file

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# Retrieve arguments # 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 domain=$1
port=$2 port=$2
sync_node=$3 sync_node=$3