monitoror icon indicating copy to clipboard operation
monitoror copied to clipboard

Missing CURL flag and bad URL in Raspberry Pi guide

Open boristsr opened this issue 4 years ago • 2 comments

I just tried to follow your guide on setting up a raspberry pi, however the service was failing to start. I tracked it down to the downloaded "binary" was actually a HTML redirect page.

Amending the following command under "Install Monitoror" with a -L command works as expected.

sudo curl -s -L -o /opt/monitoror/monitoror https://github.com/monitoror/monitoror/releases/download/3.1.0/monitoror-linux-arm-3.1.0

I couldn't work out a URL that worked as expected for latest. I suspect you'll always need to add files with the same filename to a release for this to work, or tell people to grab the latest URL from the releases page.

boristsr avatar Mar 25 '20 05:03 boristsr

Hi! Thanks for the report, we will fix this soon 🙂

jsdidierlaurent avatar Mar 25 '20 08:03 jsdidierlaurent

This is the one-liner to download the latest:

curl -sL -o monitoror $(curl -s https://api.github.com/repos/monitoror/monitoror/releases/latest | grep 'browser_download_url.*monitoror-linux-arm' | cut -d: -f2,3 | tr -d \")

Alex-D avatar Mar 25 '20 11:03 Alex-D