This guide assumes that the current systemd file is named as og
Downloading and installing Binary
sudo systemctl stop og
cd $HOME
git clone https://github.com/0glabs/0g-chain.git
cd 0g-chain
git pull
git checkout v0.4.0
make install
sudo systemctl start og
For Cosmovisor Users
# Downloading and installing Binary
cd $HOME
git clone https://github.com/0glabs/0g-chain.git
cd 0g-chain
git pull
git checkout v0.4.0
make install
# Making New Binary Directory and Copying the Daemon
mkdir -p $HOME/.0gchain/cosmovisor/upgrades/v0.4.0/bin
sudo cp $HOME/go/bin/0gchaind $HOME/.0gchain/cosmovisor/upgrades/v0.4.0/bin/
#Stop og daemon
sudo systemctl stop og
#creating symlink to new binaries
ls -l $HOME/.0gchain/cosmovisor/current
rm $HOME/.0gchain/cosmovisor/current
ln -s $HOME/.0gchain/cosmovisor/upgrades/v0.4.0 $HOME/.0gchain/cosmovisor/current
#starting og
sudo systemctl start og && sudo journalctl -u og -f -o cat