Update LETSENCRYPT_OUTPUT initialization to use empty JSON object for improved structure
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -183,7 +183,7 @@ if [ "$GENERATE_CERTIFICATE" == "true" ]; then
|
|||||||
|
|
||||||
if [ ! -f $LETSENCRYPT_OUTPUT ]; then
|
if [ ! -f $LETSENCRYPT_OUTPUT ]; then
|
||||||
install -m 664 -g 65534 /dev/null $LETSENCRYPT_OUTPUT
|
install -m 664 -g 65534 /dev/null $LETSENCRYPT_OUTPUT
|
||||||
echo '[]' >$LETSENCRYPT_OUTPUT
|
echo '{}' >$LETSENCRYPT_OUTPUT
|
||||||
fi
|
fi
|
||||||
DOMAIN_CHECK="curl -s -o /dev/null -w "%{http_code}" http://$DOMAIN"
|
DOMAIN_CHECK="curl -s -o /dev/null -w "%{http_code}" http://$DOMAIN"
|
||||||
if [[ "$(eval $DOMAIN_CHECK)" == "200" || "$(eval $DOMAIN_CHECK)" == "301" ]]; then
|
if [[ "$(eval $DOMAIN_CHECK)" == "200" || "$(eval $DOMAIN_CHECK)" == "301" ]]; then
|
||||||
|
Reference in New Issue
Block a user