Skip to content

Instantly share code, notes, and snippets.

@nicolasleander
Last active August 26, 2022 15:19
Show Gist options
  • Save nicolasleander/8cb8705432656851b7d406b4db95d2ef to your computer and use it in GitHub Desktop.
Save nicolasleander/8cb8705432656851b7d406b4db95d2ef to your computer and use it in GitHub Desktop.
upgrade lighthouse
LH_VERSION=$(curl -IsS https://github.com/sigp/lighthouse/releases/latest | grep location: | awk -F / '{print $NF}' | tr -d '\r')
wget -q --show-progress https://github.com/sigp/lighthouse/releases/download/${LH_VERSION}/lighthouse-${LH_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz
tar -xvf lighthouse-${LH_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz
rm -rf lighthouse-${LH_VERSION}-x86_64-unknown-linux-gnu-portable.tar.gz
sudo systemctl stop lighthousebeacon
sudo mv -f lighthouse /usr/local/bin
sudo systemctl start lighthousebeacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment