fix util sh
This commit is contained in:
parent
b5b887d8af
commit
418560a7be
|
@ -63,15 +63,15 @@ get_certificate() {
|
|||
STAGING_URL='https://acme-staging.api.letsencrypt.org/directory'
|
||||
|
||||
if [ "${IS_STAGING}" = "1" ]; then
|
||||
letsencrypt_url=STAGING_URL
|
||||
letsencrypt_url=$STAGING_URL
|
||||
echo "Staging ..."
|
||||
elses
|
||||
letsencrypt_url=PRODUCTION_URL
|
||||
else
|
||||
letsencrypt_url=$PRODUCTION_URL
|
||||
echo "Production ..."
|
||||
fi
|
||||
|
||||
echo "running certbot ... $letsencrypt_url"
|
||||
echo "running certbot ... $letsencrypt_url $1 $2"
|
||||
certbot certonly --agree-tos --keep -n --text --email $2 --server \
|
||||
$letsencrypt_url -d $1 --http-01-port 1337 \
|
||||
--standalone --standalone-supported-challenges http-01 --debug
|
||||
--standalone --preferred-challenges http-01 --debug
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue