cpanel_uapi deploy-hook with root user, first time issue time cannot deploy cert. and give error "Error in deploying certificate - cannot retrieve sitelist"
source of error: cpanel asks for username in site list:
solution: root user set the username DEPLOY_CPANEL_USER and sitelist command processes the code with this argument
test env:
106.0.7 cpanel
centos 7
latest acme.sh