mirror of
https://github.com/jung-geun/DynamicDNS-SSL.git
synced 2025-12-19 20:44:40 +09:00
Refactor file paths and update dependencies
This commit is contained in:
17
run.py
Normal file
17
run.py
Normal 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)
|
||||
Reference in New Issue
Block a user