-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevos-bootstrap.sh
More file actions
30 lines (26 loc) · 822 Bytes
/
evos-bootstrap.sh
File metadata and controls
30 lines (26 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#Color codes
RED='\033[0;91m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
evos-cli stop
echo -e "${GREEN} Stopped the Evos Server ${NC}"
sleep 2s
rm -rf .evos/blocks .evos/chainstate
echo -e "${GREEN} Removing the current blockchain data... ${NC}"
sleep 2s
echo -e "${GREEN} I will start downloading the blockchain files in 5 seconds... ${NC}"
sleep 5s
wget http://289623_web.fakaheda.eu/evos/evosbootstrap.zip
sleep 2s
echo -e "${GREEN} Now i will install the actual blockchain data! ${NC}"
sudo apt-get install unzip
unzip evosbootstrap.zip -d .evos
echo -e "${GREEN} Files succesfully installed! ${NC}"
sleep 1s
echo -e "${GREEN} Removing .zip file from your directory ${NC}"
rm -rf evosbootstrap.zip
echo -e "${GREEN} Starting the Server... ${NC}"
evosd -daemon
evos-cli --version