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
Eliminated php dependency with a private function for urlencode using sed. Php had failed on godaddy due to multiple php instances and naturally cron using the one without the necessary -r option. Compared to previous PR the sed code is now POSIX and should work on all environments.