Add get IP script

This commit is contained in:
Keith Whyte 2021-06-01 01:28:29 +02:00
parent 9240f6c523
commit 79c4da8bd0
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/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