FusionAuth/fusionauth-install

Startup script needs to have curl handle redirects

orta opened this issue · 7 comments

orta commented

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?

orta commented

Latest, grabbed via:

> sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"

curl -fSL --progress-bar -o /tmp/fusionauth-app.deb "${BASE_URL}/${VERSION}/fusionauth-app_${VERSION}-1_all.deb"

Hmm.. I think we are using -L already which should follow redirects.

orta commented

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.

orta commented

I'd bet they are