Startup script needs to have curl handle redirects
orta opened this issue · 7 comments
I had to add -L
to the curls in fusionauth/bin/startup.sh
in order to boot the server
curl ${CURL_OPTS} "${DOWNLOAD_URL}" -L -o "${JAVA_DIR}/openjdk-macos-${JAVA_VERSION}.tar.gz"
Because the tar if downloads was a 'you have been redirected' page. Couldn't find it in the repo though, so made an issue 👍🏻
Thanks for filing this issue, @orta !
Which version of FusionAuth was this for? The latest?
Latest, grabbed via:
> sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
Line 64 in 0389385
Hmm.. I think we are using -L
already which should follow redirects.
The problem curls are in fusionauth/bin/startup.sh
@orta Thanks, I can replicate.
When I pull down the install.sh, the version of startup.sh that is installed doesn't have the correct curl options.
To replicate:
curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh > install.sh
sh install.sh
examine fusionauth/bin/startup.sh, it is missing options.
Internal note: Not sure what is going on because https://github.com/FusionAuth/fusionauth-app/blob/master/src/main/bin/startup.sh has the correct curl options and has for months.
Is this a dup of FusionAuth/fusionauth-issues#1519 ?
I'd bet they are