Removed cross origin header add lines

This commit is contained in:
2022-12-14 08:41:08 +00:00
parent b52f04347c
commit 9373f2ba3b
2 changed files with 1 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ if [ "$GENERATE_CERTIFICATE" == "true" ]; then
} >> "$file";
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)" != "000" ]]; then
letsencrypt_certificates;
echo "Started letsencrypt for domain: $DOMAIN first time"
else