From 0c7faa061264b64680577014850e61eea59d902c Mon Sep 17 00:00:00 2001 From: Santeri Date: Sun, 3 Sep 2017 13:09:44 +0400 Subject: [PATCH] cpanel_uapi Added cpanel_uapi instructions --- deploy/README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/deploy/README.md b/deploy/README.md index 232fdb4a..b1873ad2 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -6,17 +6,13 @@ Here are the scripts to deploy the certs/key to the server/services. ## 1. Deploy the certs to your cpanel host. -(cpanel deploy hook is not finished yet, this is just an example.) - - - -Then you can deploy now: +This hook is using UAPI and works in cPanel & WHM version 56 or newer. ```sh -export DEPLOY_CPANEL_USER=myusername -export DEPLOY_CPANEL_PASSWORD=PASSWORD -acme.sh --deploy -d example.com --deploy-hook cpanel +export DEPLOY_CPANEL_USER=cpanel_username +acme.sh --deploy -d example.com --deploy-hook cpanel_uapi ``` +DEPLOY_CPANEL_USER is required only if you run the script as root and it should contain cpanel username. ## 2. Deploy ssl cert on kong proxy engine based on api.