Upgrade
Manually
cd $HOME
rm -rf gitopia
git clone https://github.com/gitopia/gitopia.git
cd gitopia
git checkout v4.0.0
make build
sudo systemctl restart gitopiad
sudo journalctl -u gitopiad -f --no-hostname -o cat
Auto
cd $HOME && \
wget -O gitopiad.tar.gz https://github.com/gitopia/gitopia/releases/download/v4.0.0/gitopiad_4.0.0_linux_amd64.tar.gz && \
tar -xzf gitopiad.tar.gz && \
chmod +x $HOME/gitopiad && \
old_bin_path=$(which gitopiad) && \
home_path=$HOME && \
rpc_port=$(grep -m 1 -oP '^laddr = "\K[^"]+' "$HOME/.gitopia/config/config.toml" | cut -d ':' -f 3) && \
tmux new -s gitopia-upgrade "sudo bash -c 'curl -s https://raw.githubusercontent.com/appieasahbie/testnet-guides/main/utils/autoupgrade/upgrade.sh | bash -s -- -u \"24330422\" -b \"$HOME/gitopiad\" -n \"$HOME/gitopiad\" -o \"$old_bin_path\" -h \"$home_path\" -p \"https://api.gitopia.aknodes.net//cosmos/gov/v1/proposals/31\" -r \"$rpc_port\"'"
Last updated