Upgrade
Page details upgrade instructions for nodes.

Binary

In order to upgrade automatically you can run the following oneline script:
This assumes running Ubuntu paired with systemd.
Other implementation will be added later on.
curl -fsSL https://raw.githubusercontent.com/digitalnativeinc/standard-substrate/master/scripts/oneline-upgrade.sh | bash

Commands:

# set env var for file
export FILE="/usr/local/bin/opportunity-standalone"
# stops the process
sudo systemctl stop opportunity-standalone
# moves binary to be a backup
mv $FILE $FILE-backup
# pulls latest release tag and sets it as var
export LATEST_RELEASE=`curl --silent "https://api.github.com/repos/digitalnativeinc/standard-substrate/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
# downloads binary based on latest tag set
wget -O $FILE https://github.com/digitalnativeinc/standard-substrate/releases/download/$LATEST_RELEASE/opportunity-standalone-linux-x86_64
# make binary executable
chmod +x $FILE
# restart the service
systemctl start opportunity-standalone
# check it started up correctly
systemctl status opportunity-standalone --no-pager -o cat
# check logs to see if there are any issues
journalctl -u standard-validator -f

Docker

Under construction
Copy link