-debug will display on cli once ended what had gone in detail
-help ???
-tolerant it will not run in a strict mode
-sleep make it sleep for X seconds
-rsleep make it sleep for random(0-X) seconds
You can change these seting mid way update domains
-auth_email / -auth_email / -auth_method / -auth_method / -auth_method / -ttl / -proxy
Setup to default of strict mode when it asked to exit script.
Add a parameter -tolerant has been add to disable strict mode. This should be the first parameter that is defined.
Just did a little tying up tryied to remove tabs and pointless white space.
It allows mutiable domains to be updated on CLI easily. Makes some basic checks that account info is supplied. Also gives an detail debug output "-debug".
cloudflare-template.sh mydomain.com example.com www.example.com x1.example.com
cloudflare-template.sh
Permits to run the script on simpler/lighter Linux distributions,
e.g. OpenWRT, where the grep utility available does not permit to use
Perl extended regexp (the `grep -P` option)
Instead of creating a log file. This change leverages the syslog. This allows us to not have to manually rotate logs, or worry about the log file filling up the file system. This also give us timestamps of the logging without having to create the timestamps ourselves. Messages are logged to /var/log/messages by default.