cisagov / cyhy-core

Core code for Cyber Hygiene (CyHy)
Other
7 stars 9 forks source link

Add location flag to `curl` command #97

Closed dav3r closed 3 months ago

dav3r commented 3 months ago

๐Ÿ—ฃ Description

This PR adds the --location flag to the curl command used in var/geoipupdate.sh.

๐Ÿ’ญ Motivation and context

Resolves #96.

Without this, the request to fetch the GeoIP database fails because curl does not follow the redirect specified by the HTTP 302 response.

๐Ÿงช Testing

I confirmed that without this change, generate_cyhy_docker_image.sh fails with the error shown in #96. After this change, the script runs successfully and a cyhy-core Docker image is created.

โœ… Pre-approval checklist