Hi everyone!
I updated my node and relays the latest 1.25.1 version.
I prepared lines you can just copy-paste in your terminal that will update your node/relays to the latest 1.25.1 version from 1.24.2.
!!! IMPORTANT. This update code is for the nodes/relays that were setup following CoinCashew guide.
!!! IMPORTANT. If you just want to copy and paste the code below, then first run in your terminal, so you will not be asked to enter a password again:
sudo echo READY
Otherwise, copy-paste-run will fail at the entering password step. You can also run those commands step by step making sure that each step is ok.
#
# BACKUP PREVIOUS SOURCES AND DOWNLOAD 1.25.1
#
cd $HOME/git
mv cardano-node cardano-node-1.24.2
git clone https://github.com/input-output-hk/cardano-node.git
cd cardano-node
git fetch --all --recurse-submodules --tags
git checkout tags/1.25.1
#
# CONFIGURE BUILD OPTIONS
#
cabal configure -O0 -w ghc-8.10.2
rm -rf $HOME/git/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.2
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
#
# BUILD
#
cabal build cardano-cli cardano-node
#
# STOP THE NODE TO BE ABLE TO REPLACE BINARIES
#
sudo systemctl stop cardano-node
#
# COPY NEW BINARIES
#
sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
#
# CHECK NEW INSTALLED VERSIONS
#
cardano-node version
cardano-cli version
# UPDATE VALUE OF NODE_BUILD_NUM
export NODE_BUILD_NUM=$(curl https://hydra.iohk.io/job/Cardano/iohk-nix/cardano-deployment/latest-finished/download/1/index.html | grep -e "build" | sed 's/.*build\/\([0-9]*\)\/download.*/\1/g')
sed -i $HOME/.bashrc \
-e "s/export NODE_BUILD_NUM=[0-9]\+/export NODE_BUILD_NUM=${NODE_BUILD_NUM}/g"
source $HOME/.bashrc
#
# UPDATE mainnet-config.json TO THE LATEST VERSION AND START THE NODE
#
cd $NODE_HOME
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-config.json
sed -i ${NODE_CONFIG}-config.json \
-e "s/TraceBlockFetchDecisions\": false/TraceBlockFetchDecisions\": true/g"
sudo systemctl start cardano-node
#
# UPDATE gLiveView.sh
#
cd $NODE_HOME
sudo apt install bc tcptraceroute -y
curl -s -o gLiveView.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/gLiveView.sh
curl -s -o env https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env
chmod 755 gLiveView.sh
sed -i env \
-e "s/\#CONFIG=\"\${CNODE_HOME}\/files\/config.json\"/CONFIG=\"\${NODE_HOME}\/mainnet-config.json\"/g" \
-e "s/\#SOCKET=\"\${CNODE_HOME}\/sockets\/node0.socket\"/SOCKET=\"\${NODE_HOME}\/db\/socket\"/g"