diff --git a/createVhosts.sh b/createVhosts.sh index 4efbc74..a5f3260 100755 --- a/createVhosts.sh +++ b/createVhosts.sh @@ -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 $? }