Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-omega-labs authored Apr 13, 2022
1 parent 47fac16 commit 7e008d7
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ cat << "EOF"
\______/ \_______/|__/ |__/ \_______/|_______/ |__/|_______/ |________/|______/
/$$ /$$ /$$
| $$ | $$ | $$
/$$$$$$$ /$$$$$$ /$$$$$$ | $$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
| $$__ $$ /$$__ $$ /$$__ $$| $$__ $$ /$$__ $$ |____ $$|_ $$_/ /$$__ $$
| $$ \ $$| $$ \ $$| $$ \ $$| $$ \ $$| $$ | $$ /$$$$$$$ | $$ | $$$$$$$$
| $$ | $$| $$ | $$| $$ | $$| $$ | $$| $$ | $$ /$$__ $$ | $$ /$$| $$_____/
| $$ | $$| $$$$$$/| $$$$$$/| $$$$$$$/| $$$$$$$| $$$$$$$ | $$$$/| $$$$$$$
|__/ |__/ \______/ \______/ |_______/ \_______/ \_______/ \___/ \_______/
Welcome to the decentralized blockchain Renaissance, above money & beyond cryptocurrency!
This script will update genesis_29-1 to genesis_29-2.
NOTE: Be ready to enter and remember your NEW strong passwords during the installation process.
Expand All @@ -32,20 +43,42 @@ cat << "EOF"
EOF
sleep 15s

# SYSTEM UPDATE, INSTALLATION OF THE FOLLOWING PACKAGES: jq git wget make gcc build-essential snapd wget, INSTALLATION OF GO 1.17 via snap

# SYSTEM UPDATE, INSTALLATION OF THE FOLLOWING PACKAGES: jq git wget make gcc build-essential snapd wget ponysay sl, INSTALLATION OF GO 1.17 via snap

sudo apt-get update -y
sudo apt-get install jq git wget make gcc build-essential snapd wget -y
sudo apt-get install jq git wget make gcc build-essential snapd cmatrix sl wget -y
snap install --channel=1.17/stable go --classic
export PATH=$PATH:$(go env GOPATH)/bin
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc
snap install ponysay

# GLOBAL CHANGE OF OPEN FILE LIMITS
echo "* - nofile 50000" >> /etc/security/limits.conf
echo "root - nofile 50000" >> /etc/security/limits.conf
echo "fs.file-max = 50000" >> /etc/sysctl.conf
ulimit -n 50000

ponysay "LAST REMINDER: This is an update script to migrate from genesis_29-1 to genesis_29-2 network! If you want new node from scratch, terminate this script with CTRL+C and run the install-genesisd.sh script"

sleep 10s
<< "EOF"
\\
\\_
.---(')
o( )_-\_
Follow the white rabbit
EOF
sleep 5s
cmatrix
sleep 5s
pkill cmatrix
echo Now just updating the software!
#STOPPING EVMOSD DAEMON AND COSMOVISOR IF IT WAS NOT STOPPED
pkill evmosd
pkill cosmovisor

# BACKUP genesis_29-1 .evmosd
cd
rsync -r --verbose --exclude 'data' ./.evmosd/ ./.evmosd_backup/
Expand Down Expand Up @@ -79,17 +112,7 @@ genesisd unsafe-reset-all

# STARTING GENESISL1 NEOLITHIC STAGE NODE
genesisd start --chain-id genesis_29-2 --pruning=nothing --trace --log_level info --minimum-gas-prices=1el1
echo All set!
echo All set, starting your updated node!
sleep 3s


cat << "EOF"
\\
\\_
.---(')
o( )_-\_
Node start
EOF

sl
sleep 5s

0 comments on commit 7e008d7

Please sign in to comment.