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 +``` +