βοΈCosmovisor
1. Install go
cd $HOME && \ver="1.22.0" && \wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \sudo rm -rf /usr/local/go && \sudo tar -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 && \go version2. Install Cosmovisor
source $HOME/.bash_profile
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latestCheck cosmovisor version:
cosmovisor version3. Init Cosmovisor
Set DAEMON_HOME:
export DAEMON_NAME=story
echo "export DAEMON_NAME=story" >> $HOME/.bash_profile
export DAEMON_HOME=$HOME/.story/story
echo "export DAEMON_HOME=$HOME/.story/story" >> $HOME/.bash_profileInitialize Cosmovisor with DAEMON_HOME:
cosmovisor init $(whereis -b story | awk '{print $2}')Create the backup directory: Now that DAEMON_HOME is defined, you can create the necessary directories.
mkdir -p $DAEMON_HOME/cosmovisor/backup
echo "export DAEMON_DATA_BACKUP_DIR=$DAEMON_HOME/cosmovisor/backup" >> $HOME/.bash_profile
echo "export DAEMON_ALLOW_DOWNLOAD_BINARIES=false" >> $HOME/.bash_profileAfter setting up, reload your environment variables with:
4. Create upgrades folder
Stop node
Download Story binary v0.13.0
Copy new binary to upgrades folder
Add Upgrade Information for new version
5. Verify the Setup
Update service file:
5. Set schedule for upgrade:
Last updated
Was this helpful?