Add debug option to acme

This commit is contained in:
Lutchy Horace 2021-03-19 11:48:38 -04:00
parent 0d664a5e6b
commit 09d7191802
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,6 @@
#
# Create Vhosts on VPS3
#
DEBUG=0
#set -e
@ -27,7 +26,12 @@ function usage
function get_cert
{
/root/.acme.sh/acme.sh --issue --domain $_domain --webroot /srv/http-content-combined/ --cert-file /etc/nginx/ssl/${_domain}.crt --key-file /etc/nginx/ssl/${_domain}.key --fullchain-file /etc/nginx/ssl/${_domain}-fullchain.crt
# should we enable verbose
_debug_arg=""
if [ "$DEBUG" = "1" ]; then
_debug_arg="--debug"
fi
/root/.acme.sh/acme.sh --issue --domain $_domain --webroot /srv/http-content-combined/ --cert-file /etc/nginx/ssl/${_domain}.crt --key-file /etc/nginx/ssl/${_domain}.key --fullchain-file /etc/nginx/ssl/${_domain}-fullchain.crt $_debug_arg
return $?
}