cloudflare-dns-updater/set_ip.sh
Neshura 1fec94e049
Include sleep in bash script
Script now waits 2 Minutes before the next request
2022-11-27 16:49:00 +01:00

10 lines
242 B
Bash

#!/bin/bash
cd "/usr/bin/app" || exit
while :
do
ipv4=$(curl -k -s https://am.i.mullvad.net/ip)
ipv6=$(curl -k -s https://ipv6.am.i.mullvad.net/)
python3 ./cloudflare_script.py 4 "$ipv4"
python3 ./cloudflare_script.py 6 "$ipv6"
sleep 120
done