Add debug option to acme
This commit is contained in:
parent
0d664a5e6b
commit
09d7191802
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue