mirror of
https://github.com/Hyperspeed1313/porkbun-dynamic-dns-python.git
synced 2026-01-31 04:41:21 +00:00
Only delete the existing entry if it has the wrong content.
Add quiet option so it doesn't fill up the logs running as a cronjob. Removed a couple of unnecessary semicolons.
This commit is contained in:
parent
22338834b5
commit
a477a75e76
3 changed files with 23 additions and 10 deletions
|
|
@ -1,3 +1,8 @@
|
|||
It bothered me that if I want to run this utility as a cron job every 5 minutes, I would be deleting my entry every 5 minutes. So I modified the code to first check if it even needs to do any updates before it goes and deletes the existing entry.
|
||||
This fork also adds a "quiet" config option that if set to "true", will cause nothing to print unless something goes wrong. Useful for those not wanting to fill up a log/mail file that's capturing the prints from their cron jobs. Not the best way to do it as that "quiet" setting gets sent with all your API requests, but it doesn't seem to be affecting whether Porkbun accepts my API requests to have the extra field tacked on there.
|
||||
---
|
||||
# README.MD from porkbundomains/porkbun-dynamic-dns-python:main
|
||||
---
|
||||
# porkbun-dynamic-dns-python [deprecated]
|
||||
|
||||
Please note, this module is now in deprecated status. It is provided as-is as an example of how to use the Porkbun API manage DNS records, but is no longer maintained. Our unofficial recommendation would be to look into <a href="https://github.com/ddclient/ddclient">ddclient</a>, which now supports calls to our API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue