From 1fec94e04969fa40dcf4a307793f54a8cfdce4e0 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 27 Nov 2022 16:49:00 +0100 Subject: [PATCH] Include sleep in bash script Script now waits 2 Minutes before the next request --- set_ip.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/set_ip.sh b/set_ip.sh index 9d8ed1c..a1549e7 100644 --- a/set_ip.sh +++ b/set_ip.sh @@ -1,7 +1,10 @@ #!/bin/bash -cd /home/server/DNS_Temp +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/) -source venv/bin/activate python3 ./cloudflare_script.py 4 "$ipv4" python3 ./cloudflare_script.py 6 "$ipv6" +sleep 120 +done \ No newline at end of file