Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDns Scripts: Rename 'retry_count' to 'retry_max_count' in custom scripts and sample config #25848

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

FriesI23
Copy link
Contributor

@FriesI23 FriesI23 commented Jan 28, 2025

Maintainer: FriesI23 Qin / @FriesI23
Compile tested: should be universal, Debian 12, OpenWrt 23.05.05
Run tested: i386_pentium4, vm on proxmox 8.3 using openwrt.sh, OpenWrt 23.05

I don’t have accounts for these providers, so only tested whether scripts listed below can read new var (retry_max_count).

Description:

Finish work from "e3292e4" by change remaining retry_count to retry_max_count.

ddns-scripts: rename variable: s/retry_count/retry_max_count/

  • ddns.config_sample
  • cloudflare.com v4
  • dnspod.cn
  • godaddy.com v1
  • luadns.com v1

Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <[email protected]>
Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <[email protected]>
Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <[email protected]>
Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <[email protected]>
Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <[email protected]>
@FriesI23 FriesI23 force-pushed the ddns-scripts/fix-retry-max-count branch from 932e2b3 to 7a6eff0 Compare January 28, 2025 03:04
@FriesI23 FriesI23 marked this pull request as ready for review January 28, 2025 03:05
@stangri
Copy link
Member

stangri commented Jan 28, 2025

Have you considered adding a uci-defaults script to move the old option value into a new one?

@FriesI23
Copy link
Contributor Author

FriesI23 commented Feb 2, 2025

Have you considered adding a uci-defaults script to move the old option value into a new one?

I’m not quite sure how to write and where to place adding a uci-defaults script (does it execute automatically?). Could you plz locate some sample code and linked below?

@feckert
Copy link
Member

feckert commented Feb 4, 2025

Please have a look to the following page.
https://openwrt.org/docs/guide-developer/uci-defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants