monitoror
monitoror copied to clipboard
Missing CURL flag and bad URL in Raspberry Pi guide
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.
Hi! Thanks for the report, we will fix this soon 🙂
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 \")