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

Dynamic variables names for _readaccountconf_mutable and _saveaccountconf_mutable #5186

Open
woxxo opened this issue Jun 24, 2024 · 1 comment

Comments

@woxxo
Copy link

woxxo commented Jun 24, 2024

I'd like to write my own dnsapi script for a specific cloud hoster, and have to save and load the value of a variable with dynamically generated name. This variable name will be generated at runtime.

So, I have to change this
Token1="${My_Token:-$(_readaccountconf_mutable My_Token)}"
_saveaccountconf_mutable My_Token "$Token1"

to somethig like this:
Var_Name="My_Token"
Token1="${???Var_Name???:-$(_readaccountconf_mutable ???Var_Name???)}"
_saveaccountconf_mutable ???Var_Name??? "$Token1"

Any idea on how to implement this? Thank you in advance!

Copy link

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

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

No branches or pull requests

1 participant