37 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
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