7 lines
176 B
Text
Executable file
7 lines
176 B
Text
Executable file
#!/bin/bash
|
|
_IP=`curl -s api.ipify.org`
|
|
echo $_IP > /tmp/my_ip
|
|
if [ "$_IP" == "<%= @protokol_pub_ip %>" ] ;then
|
|
_IP=`curl -s 10.0.200.100/ip.sh`
|
|
echo $_IP >> /tmp/my_ip
|
|
fi
|