updated staging variable in script
This commit is contained in:
parent
4d0f534abd
commit
8a425f2db2
1 changed files with 11 additions and 4 deletions
|
@ -19,9 +19,9 @@ fi
|
||||||
# Set certificate url based on LETSENCRYPT_WILDCARD value
|
# Set certificate url based on LETSENCRYPT_WILDCARD value
|
||||||
if [ "$LETSENCRYPT_WILDCARD" = "true" ]; then
|
if [ "$LETSENCRYPT_WILDCARD" = "true" ]; then
|
||||||
echo "INFO: A wildcard SSL certificate will be created"
|
echo "INFO: A wildcard SSL certificate will be created"
|
||||||
LETSENCRYPT_DOMAIN=*.$DUCKDNS_DOMAIN
|
LETSENCRYPT_DOMAIN="*.$DUCKDNS_DOMAIN"
|
||||||
else
|
else
|
||||||
LETSENCRYPT_DOMAIN=$DUCKDNS_DOMAIN
|
LETSENCRYPT_DOMAIN="$DUCKDNS_DOMAIN"
|
||||||
LETSENCRYPT_WILDCARD="false"
|
LETSENCRYPT_WILDCARD="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -53,13 +53,20 @@ fi
|
||||||
|
|
||||||
if [ "$TESTING" = "true" ]; then
|
if [ "$TESTING" = "true" ]; then
|
||||||
echo "INFO: Generating staging certificate"
|
echo "INFO: Generating staging certificate"
|
||||||
TEST_PARAM="--staging"
|
TEST_PARAM="--test-cert"
|
||||||
|
else
|
||||||
|
unset TEST_PARAM
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "certbot certonly --manual --preferred-challenges dns --manual-auth-hook \
|
||||||
|
/scripts/auth.sh --manual-cleanup-hook /scripts/cleanup.sh \
|
||||||
|
$EMAIL_PARAM -d $LETSENCRYPT_DOMAIN \
|
||||||
|
--agree-tos --manual-public-ip-logging-ok --keep $TEST_PARAM"
|
||||||
|
|
||||||
# Create certificates
|
# Create certificates
|
||||||
certbot certonly --manual --preferred-challenges dns --manual-auth-hook \
|
certbot certonly --manual --preferred-challenges dns --manual-auth-hook \
|
||||||
/scripts/auth.sh --manual-cleanup-hook /scripts/cleanup.sh \
|
/scripts/auth.sh --manual-cleanup-hook /scripts/cleanup.sh \
|
||||||
$EMAIL_PARAM -d "$LETSENCRYPT_DOMAIN" \
|
$EMAIL_PARAM -d $LETSENCRYPT_DOMAIN \
|
||||||
--agree-tos --manual-public-ip-logging-ok --keep $TEST_PARAM
|
--agree-tos --manual-public-ip-logging-ok --keep $TEST_PARAM
|
||||||
|
|
||||||
chown -R $UID:$GID /etc/letsencrypt
|
chown -R $UID:$GID /etc/letsencrypt
|
||||||
|
|
Loading…
Reference in a new issue