diff --git a/bash_scripts/ddns-acme-porkbun.sh b/bash_scripts/ddns-acme-porkbun.sh index a47c39f..40a0ef4 100644 --- a/bash_scripts/ddns-acme-porkbun.sh +++ b/bash_scripts/ddns-acme-porkbun.sh @@ -22,6 +22,8 @@ ddns_update() { exit 1 ;; "2") + echo "Retry in 5 min" + sleep 300 echo "Retrying" ;; "0") diff --git a/python_scripts/ddns-porkbun.py b/python_scripts/ddns-porkbun.py index af9fc7a..3046306 100644 --- a/python_scripts/ddns-porkbun.py +++ b/python_scripts/ddns-porkbun.py @@ -4,7 +4,6 @@ import os, json, sys, ipaddress, time, re import requests API_SLEEP = 3 -NET_ERR_SLEEP = 300 class PorkbunClient(): def __init__(self): @@ -49,7 +48,6 @@ class PorkbunClient(): sys.exit(1) except: print('Network error') - time.sleep(NET_ERR_SLEEP) sys.exit(2) def update_dns_record(self, content, record_type="A"): @@ -77,7 +75,6 @@ class PorkbunClient(): except: print("Network error") - time.sleep(NET_ERR_SLEEP) sys.exit(2)