From 87604dfc268747a9576f870aec1b15de1d82d12a Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 27 Nov 2022 15:31:01 +0100 Subject: [PATCH] Use venv and proper working dir --- set_ip.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/set_ip.sh b/set_ip.sh index 037bdf4..2d81de8 100644 --- a/set_ip.sh +++ b/set_ip.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd /home/server/DNS_Temp ipv4=$(curl -k -s https://am.i.mullvad.net/ip) ipv6=$(curl -k -s https://ipv6.am.i.mullvad.net/) +source venv/bin/activate.fish python3 ./cloudflare_script.py 4 "$ipv4" python3 ./cloudflare_script.py 6 "$ipv6"