cd $HOME &&\ver="1.22.0"&&\wget"https://golang.org/dl/go$ver.linux-amd64.tar.gz"&&\sudorm-rf/usr/local/go&&\sudotar-C/usr/local-xzf"go$ver.linux-amd64.tar.gz"&&\rm"go$ver.linux-amd64.tar.gz"&&\[!-f~/.bash_profile]&&touch~/.bash_profile&&\echo'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin'>>~/.bash_profile&&\source~/.bash_profile&&\goversion
sudotee/etc/systemd/system/story.service>/dev/null<<EOF[Unit]Description=Story Consensus ClientAfter=network.target[Service]User=rootEnvironment="DAEMON_NAME=story"Environment="DAEMON_HOME=/root/.story/story"Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"Environment="DAEMON_RESTART_AFTER_UPGRADE=true"Environment="DAEMON_DATA_BACKUP_DIR=/root/.story/story/data"Environment="UNSAFE_SKIP_BACKUP=true"ExecStart=/root/go/bin/cosmovisor run runRestart=alwaysRestartSec=3LimitNOFILE=4096[Install]WantedBy=multi-user.targetEOF
To schedule an upgrade to a new client version at a specific block height, cosmovisor should already be running. Once confirmed, open a separate terminal and run: