Last active
July 4, 2022 21:23
-
-
Save jasny/a19d50d7a7887cf7dd30f0168c8f1213 to your computer and use it in GitHub Desktop.
Update LTO Network public node as deb
This file contains 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
#!/bin/bash | |
set -e | |
SERVICE="lto" # Change to "lto-testnet" for testnet | |
if [ -z "$1" ]; then | |
echo "USAGE $0 VERSION" >&2 | |
exit 1 | |
fi | |
VERSION="$1" | |
PACKAGE="${SERVICE}_${VERSION}_all.deb" | |
test -e "$PACKAGE" || wget "https://github.com/ltonetwork/lto-public-chain/releases/download/v${VERSION}/${PACKAGE}" | |
echo "Stopping LTO service" | |
service $SERVICE stop | |
dpkg -i "$PACKAGE" | |
echo "Starting LTO service" | |
service $SERVICE start | |
journalctl -u $SERVICE.service -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment