Use venv and proper working dir
This commit is contained in:
parent
4c620e2642
commit
87604dfc26
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue