179 Commits

Author SHA1 Message Date
David Kerr
e090070b7c Merge branch 'FreeDNS' of github.com:dkerr64/acme.sh into FreeDNS 2017-01-30 22:32:44 -05:00
David Kerr
598fe81f9f Back to mixed case FREEDNS_User and FREEDNS_Password variable naming 2017-01-30 22:19:12 -05:00
David Kerr
0f04a8df5d use new _url_encode function in acme.sh 2017-01-30 22:16:41 -05:00
David Kerr
4e078aeae9 Revert FREEDNS userid and password variables to all uppercase
As these are exported variables by convention they should be uppercase.
Travis/Spellcheck fails because they are not uppercase and it therefore
expects them to be defined or set before use.
2017-01-30 20:13:47 -05:00
David Kerr
6787545e07 travis spellcheck fix 2017-01-30 20:13:47 -05:00
David Kerr
2d4804274d Remove bash unique string manipulation, replace with cut function. 2017-01-30 20:13:47 -05:00
David Kerr
d059831da1 Implement retry to load subdomain page if first attempt fails.
Sometimes FreeDNS does not reurn the subdomain page but rather
returns a page regarding becoming a premium member.  This usually
happens after a period of inactivity.  Immediately trying again
returns the correct subdomain page.  So, we will try twice to
load the page
2017-01-30 20:13:47 -05:00
David Kerr
8c8edd8356 Remove use of rev command... new method of separating top domain from subdomain. 2017-01-30 20:13:47 -05:00
David Kerr
ab8e7e7abf More cleanup and remove bash unique code. 2017-01-30 20:13:47 -05:00
David Kerr
c1dece1cfb Remove some bash specific string handling, replace with sed.
Plus some more code cleanup.
2017-01-30 20:13:47 -05:00
David Kerr
03ec57a054 Change from ((i++)) to i=$(_math $i + 1) 2017-01-30 20:13:47 -05:00
David Kerr
77a0145187 More code cleanup and remove use of IFS for line splitting. 2017-01-30 20:13:47 -05:00
David Kerr
4c95128113 More travis/spellcheck cleanup 2017-01-30 20:13:47 -05:00
David Kerr
24714b7508 Cleanup travis/spellcheck issues 2017-01-30 20:13:47 -05:00
David Kerr
076f057448 Remove remaining usage of curl and replace with acme.sh _get and _post
plus other misc cleanup
2017-01-30 20:13:47 -05:00
David Kerr
6897fa9880 get subdomain page with acme.sh _get() rather than using curl 2017-01-30 20:13:47 -05:00
David Kerr
98c0716347 login with acme.sh _post() rather than using curl. 2017-01-30 20:13:47 -05:00
David Kerr
5a77efd102 Cache FreeDNS authentication cookie rather than userid and password.
Now the FREEDNS_USER and FREEDNS_PASSWORD need only be exported the first
time it is used and whenever the userid or password is changed.  Subsequent
runs use the cookie cached in account.conf
2017-01-30 20:13:47 -05:00
David Kerr
0eb678753f Delete stray line copied/pasted from another pugin 2017-01-30 20:13:47 -05:00
David Kerr
a2a1e2ed25 Support for FreeDNS 2017-01-30 20:13:47 -05:00
neilpang
542d7977db add new _url_encode 2017-01-30 12:07:50 +08:00
David Kerr
aebbb1ae57 Revert FREEDNS userid and password variables to all uppercase
As these are exported variables by convention they should be uppercase.
Travis/Spellcheck fails because they are not uppercase and it therefore
expects them to be defined or set before use.
2017-01-29 21:24:31 -05:00
David Kerr
9c9ecd4813 travis spellcheck fix 2017-01-29 18:14:21 -05:00
David Kerr
76b7731998 Remove bash unique string manipulation, replace with cut function. 2017-01-29 15:43:58 -05:00
David Kerr
49e8ecd168 Implement retry to load subdomain page if first attempt fails.
Sometimes FreeDNS does not reurn the subdomain page but rather
returns a page regarding becoming a premium member.  This usually
happens after a period of inactivity.  Immediately trying again
returns the correct subdomain page.  So, we will try twice to
load the page
2017-01-29 15:34:55 -05:00
David Kerr
d280e4ad6d Remove use of rev command... new method of separating top domain from subdomain. 2017-01-29 15:09:08 -05:00
David Kerr
0cac509626 More cleanup and remove bash unique code. 2017-01-29 14:10:39 -05:00
David Kerr
a367f3737b Remove some bash specific string handling, replace with sed.
Plus some more code cleanup.
2017-01-29 13:26:37 -05:00
David Kerr
ea8dfd4a3e Change from ((i++)) to i=$(_math $i + 1) 2017-01-29 00:05:59 -05:00
David Kerr
23a6ce2795 More code cleanup and remove use of IFS for line splitting. 2017-01-28 23:57:40 -05:00
David Kerr
0efdf5e992 More travis/spellcheck cleanup 2017-01-28 22:28:52 -05:00
David Kerr
2e26aa11a6 Cleanup travis/spellcheck issues 2017-01-28 22:12:25 -05:00
David Kerr
7da47fa556 Remove remaining usage of curl and replace with acme.sh _get and _post
plus other misc cleanup
2017-01-28 21:53:03 -05:00
David Kerr
abe287528e get subdomain page with acme.sh _get() rather than using curl 2017-01-28 15:15:39 -05:00
David Kerr
e5975a7137 login with acme.sh _post() rather than using curl. 2017-01-28 14:51:07 -05:00
David Kerr
3674cdde76 Cache FreeDNS authentication cookie rather than userid and password.
Now the FREEDNS_USER and FREEDNS_PASSWORD need only be exported the first
time it is used and whenever the userid or password is changed.  Subsequent
runs use the cookie cached in account.conf
2017-01-27 17:53:46 -05:00
David Kerr
8de728f354 Delete stray line copied/pasted from another pugin 2017-01-21 16:26:54 -05:00
David Kerr
57a48f8119 Support for FreeDNS 2017-01-21 16:12:30 -05:00
Bastian Bittorf
3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
2017-01-13 14:54:09 +01:00
Bastian Bittorf
3b67cf4378 dnsapi/dns_dp.sh: shellcheck: fix 1 occurence of SC2126
shellcheck message was:
"Consider using grep -c instead of grep | wc"
2017-01-09 15:08:41 +01:00
neilpang
671a699472 minor, fix shellcheck warning 2017-01-09 22:01:48 +08:00
Bastian Bittorf
800f02ba38 dnsapi/dns_lexicon.sh: shellcheck: fix 4 occurences of SC2021:
"Don't use [] around ranges in tr, it replaces literal square brackets."

this introduces another warning:
"Use '[:lower:]' to support accents and foreign alphabets."

This is more a style thingy because we really want to only catch A-Z.
work around this by using a shellcheck-directive and a comment
that the [:lower:] will not work with e.g. busybox-ash.

if we later really want to use [:lower:], we should use 'sed' for that.
2017-01-09 12:21:32 +01:00
Kevin Kaland
3cf85634eb Trim potential closing curly brace.
Fixes GH-517.
2017-01-08 00:10:22 +01:00
Karsten Sperling
5415381cf4 Add support for AWS_SESSION_TOKEN and fix bug when multiple hosted zones exist 2017-01-06 15:36:35 +13:00
Paul Koppen
7b4be7be40 Remove spaces from blank lines. 2017-01-03 12:35:10 +00:00
Paul Koppen
b90917a529 Improve legibility. 2017-01-03 12:33:10 +00:00
Paul Koppen
180f05f6f0 Add instructions for the Alwaysdata API. 2017-01-03 12:16:22 +00:00
Paul Koppen
831b95f13a Merge suggested improvements.
* Use `_head_n`.
* Add link to GitHub repo for bug reporting.
2017-01-03 12:09:57 +00:00
Paul Koppen
331b599a81 Use _post for DELETE and switch to JSON API (Alwaysdata default). 2017-01-03 11:41:11 +00:00
Paul Koppen
e5079b9dad Add Alwaysdata DNS API. 2017-01-02 23:39:00 +00:00