Use venv and proper working dir

This commit is contained in:
Neshura 2022-11-27 15:31:01 +01:00
parent 4c620e2642
commit 87604dfc26
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -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"