-
Notifications
You must be signed in to change notification settings - Fork 49
/
nulinktasima.sh
42 lines (34 loc) · 2 KB
/
nulinktasima.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
echo -e "\033[0;38m"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
echo " ##### #### #### #### #### ###### ########## #### #### ########### #### ####";
echo " ###### #### ###### #### #### ######## ########## #### #### #### #### #### ####";
echo " ####### #### ### ### ######## #### #### #### #### #### #### #### ########";
echo " #### ####### ########## ######## #### #### #### #### #### ########### ########";
echo " #### ###### ############ #### #### #### #### #### #### #### #### #### #### ####";
echo " #### ##### #### #### #### #### ######## #### ############ #### #### #### ####";
echo " #### #### #### #### #### #### #### #### ############ #### #### #### ####";
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
echo -e '\e[36mTwitter:\e[39m' https://twitter.com/NakoTurk
echo -e '\e[36mGithub: \e[39m' https://github.com/okannako
echo -e "\e[0m"
sleep 5
cd
if [ ! $NODENAME ]; then
read -p "Enter node name: " NODENAME
echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
fi
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
source $HOME/.bash_profile
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++'
echo -e "Your node name: \e[1m\e[32m$NODENAME\e[0m"
echo -e "Your wallet name: \e[1m\e[32m$WALLET\e[0m"
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++'
sudo apt update && sudo apt upgrade -y
sudo apt-get -y install libssl-dev && apt-get -y install cmake build-essential git wget jq make gcc unzip ca-certificates curl gnupg lsb-release
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
sudo chmod 666 /var/run/docker.sock
docker pull nulink/nulink:latest
echo 'INSTALLATION IS COMPLETE'