cd $HOMEwget-Ojunctiondhttps://github.com/airchains-network/junction/releases/download/v0.2.0/junctiond-linux-amd64chmod+xjunctiondmkdir-p $HOME/.junction/cosmovisor/upgrades/jip-2/binmvjunctiond $HOME/.junction/cosmovisor/upgrades/jip-2/bin/
Verify the Setup
# Check the new binary version$HOME/.junction/cosmovisor/upgrades/jip-2/bin/junctiond version
Update service file:
sudotee/etc/systemd/system/junctiond.service>/dev/null<<EOF[Unit]Description=Cosmovisor Junctiond NodeAfter=network.target[Service]User=rootType=simpleExecStart=/root/go/bin/cosmovisor run startRestart=on-failureLimitNOFILE=65535Environment="DAEMON_NAME=junctiond"Environment="DAEMON_HOME=/root/.junction"Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"Environment="DAEMON_RESTART_AFTER_UPGRADE=true"Environment="DAEMON_DATA_BACKUP_DIR=/root/.junction/cosmovisor/backup"Environment="UNSAFE_SKIP_BACKUP=true"[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: