fix: ajuste sintaxe na checagem HTTPS no deploy.sh
This commit is contained in:
@@ -110,11 +110,11 @@ EOF
|
||||
|
||||
# 5. Validação Externa (HTTPS Cloudflare)
|
||||
echo -e "\n${YELLOW}🌐 Validando endpoint público HTTPS...${NC}"
|
||||
HTTP_STATUS=\$(curl -s -o /dev/null -w "%{http_code}" https://table-watcher.rdsnexus.com/)
|
||||
if [ "\$HTTP_STATUS" = "302" ] || [ "\$HTTP_STATUS" = "200" ]; then
|
||||
echo -e "${GREEN}✓ Endpoint público HTTPS respondendo OK (HTTP \$HTTP_STATUS): https://table-watcher.rdsnexus.com${NC}"
|
||||
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://table-watcher.rdsnexus.com/)
|
||||
if [ "$HTTP_STATUS" = "302" ] || [ "$HTTP_STATUS" = "200" ]; then
|
||||
echo -e "${GREEN}✓ Endpoint público HTTPS respondendo OK (HTTP $HTTP_STATUS): https://table-watcher.rdsnexus.com${NC}"
|
||||
else
|
||||
echo -e "${YELLOW}Aviso: Resposta HTTPS retornou HTTP \$HTTP_STATUS. Verifique o status do Cloudflared.${NC}"
|
||||
echo -e "${YELLOW}Aviso: Resposta HTTPS retornou HTTP $HTTP_STATUS. Verifique o status do Cloudflared.${NC}"
|
||||
fi
|
||||
|
||||
echo -e "\n${GREEN}=====================================================${NC}"
|
||||
|
||||
Reference in New Issue
Block a user