Skip to content

Instantly share code, notes, and snippets.

@jasny
Last active July 4, 2022 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasny/a19d50d7a7887cf7dd30f0168c8f1213 to your computer and use it in GitHub Desktop.
Save jasny/a19d50d7a7887cf7dd30f0168c8f1213 to your computer and use it in GitHub Desktop.
Update LTO Network public node as deb
#!/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