Skip to content

Instantly share code, notes, and snippets.

@ForboleDevelopment
ForboleDevelopment / morpheus-apollo-2-update.sh
Created July 12, 2021 11:40
Commands that should be run in order to update from morpheus-apollo-1 to morpheus-apollo-2 seamlessly
#!/bin/sh
echo '===> Stopping service'
sudo systemctl stop desmosd
echo '===> Building Desmos'
cd ~/desmos
git fetch --tags --force
git checkout tags/v0.17.2
make build install
@ForboleDevelopment
ForboleDevelopment / morpheus-13000-update.sh
Last active January 19, 2021 06:58
Commands that should be run in order to update from morpheus-10000 to morpheus-13000 seamlessly
#!/usr/bin/bash
# This script allows you to setup your node properly getting it
# ready for the Morpheus-13000 update.
# It will checkout and build the propery Desmos version, as well
# as setup your Systemd service.
# The only thing you have to do is run it giving it the first
# argument which is the path where you cloned the Desmos
# repository.
# E.g.
# ./morpheus-13000-update.sh ~/desmos
@ForboleDevelopment
ForboleDevelopment / setup-desmos-service.sh
Last active January 15, 2021 09:47
Script to setup the Desmos service to work without Cosmovisor
# The user is not using Cosmovisor
sudo tee $FILE > /dev/null <<EOF
[Unit]
Description=Desmos Full Node
After=network-online.target
[Service]
User=$USER
ExecStart=$GOBIN/desmos start
Restart=always
RestartSec=3
@ForboleDevelopment
ForboleDevelopment / setup-desmos-service-cosmovisor.sh
Last active January 15, 2021 09:46
Script to setup the Desmos service to work with Cosmovisor
sudo tee $FILE > /dev/null <<EOF
[Unit]
Description=Desmos Full Node
After=network-online.target
[Service]
User=$USER
ExecStart=$GOBIN/cosmovisor start
Restart=always
RestartSec=3
LimitNOFILE=4096
@ForboleDevelopment
ForboleDevelopment / morpheus-10000-update.sh
Last active October 5, 2020 14:30
Commands that should be run in order to update from morpheus-8000 to morpheus-10000 seamlessly
#!/usr/bin/bash
# This script allows you to setup your node properly getting it
# ready for the October update.
# It will checkout and build the propery Desmos version, as well
# as setup your Systemd service.
# The only thing you have to do is run it giving it the first
# argument which is the path where you cloned the Desmos
# repository.
# E.g.
# ./morpheus-10000-update.sh ~/desmos
@ForboleDevelopment
ForboleDevelopment / desmos-september-upgrade-fix.sh
Last active September 24, 2020 09:01
This script allows to fix the September upgrade setup in order to make sure your node works properly.
# This script allows to fix the September upgrade setup in order to make sure your node works properly.
# Please run run after you've ran this one: https://gist.github.com/ForboleDevelopment/92979d9be88bd593f234e28ff2cd353a
cd ~/desmos
git fetch -a
git checkout tags/v0.12.1
make build
mv build/desmosd ~/.desmosd/cosmovisor/upgrades/september-upgrade/bin
@ForboleDevelopment
ForboleDevelopment / desmos-cosmovisor-installer.sh
Last active September 30, 2020 07:10
This script allows you to setup Cosmovisor inside your Desmos node so that it will be able to automatically upgrade itself for the Desmos September Upgrade
#!/usr/bin/env bash
# This script allows the easy installation of the Cosmovisor daemon to watch
# any upgrade of your Desmos node.
# In order to run it properly, just execute this script giving it the path
# to the folder where you cloned Desmos.
# Example:
# ./install-cosmovisor.sh ~/desmos
DESMOS_PATH=$1
@ForboleDevelopment
ForboleDevelopment / morpheus-8000-update.sh
Created August 24, 2020 13:02
Commands that should be run in order to update from morpheus-7001 to morpheus-8000 seamlessly
# Go into the folder where you downloaded Desmos
cd ~/desmos
# Checkout the correct Desmos tag and build the software
git fetch --tags && git checkout tags/v0.10.0 && make install
# Stop the currently running node
sudo systemctl stop desmosd
# Remove the current genesis and get the new one
@ForboleDevelopment
ForboleDevelopment / desmos-v0.5.3-update.sh
Created July 3, 2020 05:05
Script to safely update your node to Desmos v0.5.3 without missing a block
# Go into the folder where you downloaded Desmos
cd ~/desmos
# Checkout the correct Desmos tag and build the software
git fetch --tags && git checkout tags/v0.5.3 && make install
# Restart the node
sudo systemctl restart desmosd
@ForboleDevelopment
ForboleDevelopment / morpheus-5000-update.sh
Last active June 8, 2020 08:33
Commands that should be run in order to update from morpheus-4001 to morpheus-5000 seamlessly
# Go into the folder where you downloaded Desmos
cd ~/desmos
# Checkout the correct Desmos tag and build the software
git fetch --tags && git checkout tags/v0.6.2 && make install
# Stop the currently running node
sudo systemctl stop desmosd
# Remove the current genesis and get the new one