Skip to content

Instantly share code, notes, and snippets.

@jasny
Last active Jul 4, 2022
Embed
What would you like to do?
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