From 5772f7214021e4853e0d13209096b555fbce815c Mon Sep 17 00:00:00 2001 From: invario <67800603+invario@users.noreply.github.com> Date: Wed, 28 May 2025 12:51:41 -0400 Subject: [PATCH] Added #39 for new proposed 'localcopy' deploy-hook --- deployhooks.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/deployhooks.md b/deployhooks.md index 9bcefa2..37fb637 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -1238,4 +1238,16 @@ export DEPLOY_KEMP_TOKEN="" export DEPLOY_KEMP_URL="https://kemplm.example.com" acme.sh --deploy -d example.com --deploy-hook kemplm ``` -If you generated a wildcard certificate and your certificate files are named _*.example.com_ it will be named just _example.com_ in the Kemp LoadMaster, since it allows only alphanumeric names for certificates. \ No newline at end of file +If you generated a wildcard certificate and your certificate files are named _*.example.com_ it will be named just _example.com_ in the Kemp LoadMaster, since it allows only alphanumeric names for certificates. + +## 39. Deploy to local directory via copy +Deploy hook to copy certificates to specified directories and execute new command. Helpful for admins that want to simply deploy the certificates to a directory and then execute a custom script/command to perform necessary tasks. Especially useful when used in conjuction with the `multideploy` hook (in development). +``` +export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer" +export DEPLOY_LOCALCOPY_CERTKEY="/path/to/target/cert.key" +export DEPLOY_LOCALCOPY_FULLCHAIN="/path/to/target/fullchain.cer" +export DEPLOY_LOCALCOPY_CA="/path/to/target/ca.cer" +export DEPLOY_LOCALCOPY_RELOADCMD="/path/to/reloadcmd.sh" +acme.sh --deploy -d example.com --deploy-hook localcopy +``` +