acme.sh
acme.sh copied to clipboard
Deploy/Renew Variables and Automation
Hi
I'm working on some deployment pieces and I'm wondering if there is there a list of variables that can be used in hook scripts? Theres $LE_WORKING_DIR. Is there something like $DOMAIN_PATH? I'd like to not have to hard code domain URLs.
I appreciate there's also deploy scripts which use other variable options, I can't find any documentation on these am I missing some? If not I'll just dig through more of the scripts. Is there a way of seeing what deploy commands are run as part of issue/renew? I'm calling a deploy command via a posthook script and I suspect I'm 'using it wrong'.
Appreciate the work.
here are more info about the hooks: https://github.com/acmesh-official/acme.sh/wiki/Using-pre-hook-post-hook-renew-hook-reloadcmd
as well as:
https://github.com/acmesh-official/acme.sh/wiki/deployhooks
if you use reloadcmd or the deployhook, the file paths are all passed by the parameters.
If you are using psst/renew hook, I'm afraid you need to hardcode the paths.
So I would suggest you use the reloadcmd or deployhook apporaches.
Thanks
Thanks @Neilpang I found those pages and I'm happy to write up some deployhooks properly as opposted to bodging with some bash scripts.
You suggest the file paths are all passed by the parameters, are these parameters documented somewhere for use?
And finally I noted that in the cert .conf file the deploy hooks are listed there. If i use --deploy --deploy-hook newone will it add it to the deploy hook list or override?