mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
location of config.json with standalone binary #495
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mwshook on GitHub (Feb 9, 2025).
Running the binary creates a config.json file in a location inconsistent with the README instructions
Is this urgent: Yes
DNS provider(s) you use: Porkbun
Program version:
2.9.0 built on 2024-12-24T10:43:16Z (commit 78f30614b1d085ef6bfbfce92b0e45ca0204f42a)What are you using to run the container: no container. Standalone binary ddns-updater_2.9.0_linux_amd64
Extra information:
Desired behavior: I create
config.jsonper the README, put it in the directorydata, runddns-updater, it finds the config and parses itObserved behavior: ddns-updater finds
data, creates a newdatainside of it, creates a blankconfig.jsoninside the nesteddata.Following the README instructions, I made a
datadirectory in the same directory with the ddns-updater binary. I put aconfig.jsonfile insidedatafollowing the instructions for my provider, Porkbun. I was not able to get the domain to update. I then realized the problem was that the binary created a blankconfig.jsoninside of a newdatadirectory inside of thedatadirectory I created. I copied my config in place of the blank one and now everything works correctly.Tree output showing the files and directories created:
Logs:
Configuration file (remove your credentials!):
Host OS:
Linux 4.4.302+ #72806 SMP Thu Sep 5 13:44:44 CST 2024 x86_64 GNU/Linux synology_geminilake_224+
@kankaristo commented on GitHub (Feb 20, 2025):
Looks like you're running
ddns-updaterinside of thedatadirectory. It's looking for a data directory inside the current working directory, and when it can't find one, it creates it. The name of the working directory does not matter, it just happens to be calleddataas well.So, looks like it's working as intended. You can run it one directory up, and you won't get that nested
data/datadirectory.