Refactor file paths and update dependencies

This commit is contained in:
2024-09-25 10:46:37 +09:00
parent 19c2ddc6f5
commit 51a9b4d8c2
6 changed files with 25 additions and 24 deletions

17
run.py Normal file
View File

@@ -0,0 +1,17 @@
import sys
from dynamicdns_ssl import DDNS
if __name__ == "__main__":
API = DDNS()
config = API.get_config()
# Check if the IP has changed
results = API.update_a_list(config["CLOUDFLARE_A"], API.current_ip)
API.update_ip(API.current_ip)
# Update CNAME records
result = API.update_cname_list(config["CLOUDFLARE_CNAME"])
sys.exit(0)