Last active
August 26, 2022 15:19
-
-
Save nicolasleander/8cb8705432656851b7d406b4db95d2ef to your computer and use it in GitHub Desktop.
upgrade lighthouse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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