Geordie-R / coti-node-upgrade

A script to easily upgrade a coti full node that was originally installed with the wolf install script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coti Node Upgrade Script

A script to easily upgrade a coti full node that was originally installed with the wolf install script.

Please run the script as the root user by logging in as root. Copy and paste the code below into your node after logging in. This script assumes you installed your node with the cotidocs install at https://cotidocs.geordier.co.uk

If you have any issues, you can catch me on telegram or discord.

cd ~
rm -rf upgrade.sh
wget -O upgrade.sh https://raw.githubusercontent.com/Geordie-R/coti-node-upgrade/main/upgrade.sh && chmod +x upgrade.sh
./upgrade.sh

Corrupt database?

If you get a corrupt database run the following code to set a reset.transactions=true in your config and restart your cnode.service.

Step 1 - Set reset.transactions to true

cd ~
rm -rf reset_transactions.sh
wget -O reset_transactions.sh https://raw.githubusercontent.com/Geordie-R/coti-node-upgrade/main/reset_transactions.sh && chmod +x reset_transactions.sh
./reset_transactions.sh "true"

Step 2 - Reboot the cnode.service

sudo systemctl stop cnode.service
sudo systemctl start cnode.service

Step 3 - Set reset.transactions back to false

Finally once your node is back up and running, set the reset to false so that we dont wipe the transactions on the next reboot.

./reset_transactions.sh "false"

About

A script to easily upgrade a coti full node that was originally installed with the wolf install script


Languages

Language:Shell 100.0%