This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstall.sh
132 lines (118 loc) · 2.71 KB
/
install.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/bin/bash
# A menu driven shell script sample template
## ----------------------------------
# Step #1: Define variables
# ----------------------------------
# ----------------------------------
# Step #2: User defined function
# ----------------------------------
pause(){
read -p "Press [Enter] key to continue..." fackEnterKey
}
install_modules(){
sudo apt-get install build-essential
sudo apt-get install npm
sudo apt-get install python3-pip
sudo -H pip3 install setuptools
sudo -H pip3 install -r requirements.txt
sudo npm install pm2@latest -g
}
ark(){
install_modules
npm install arkjs@0.2.1
pause
}
qredit(){
install_modules
npm install https://github.com/HodlerCompany/qredit-js
pause
}
persona(){
install_modules
mkdir node_modules
cd node_modules
git clone https://github.com/PersonaIam/persona-js
cd persona-js
npm install
pause
}
ripa(){
install_modules
npm install https://github.com/RipaEx/ripa-js
pause
}
lwf(){
install_modules
npm install https://github.com/lwfcoin/lwf-nano-js
pause
}
oxy(){
install_modules
npm install https://github.com/Oxycoin/oxy-nano-js
pause
}
onz(){
install_modules
npm install https://github.com/OnzCoin/onz-js
pause
}
lisk(){
install_modules
npm install lisk-js
pause
}
shifts(){
install_modules
mkdir node_modules
cd node_modules
git clone https://github.com/ShiftNrg/shift-js
cd shift-js
npm install
pause
}
# function to display menus
show_menus() {
clear
echo "~~~~~~~~~~~~~~~~~~~~~"
echo " M A I N - M E N U"
echo "~~~~~~~~~~~~~~~~~~~~~"
echo "1. Install ARK/KAPU/SWAPBLOCKS"
echo "2. Install PERSONA"
echo "3. Install RIPA"
echo "4. Install LWF"
echo "5. Install OXY"
echo "6. Install SHIFT"
echo "7. Install LISK"
echo "8. Install ONZ"
echo "9. Install QREDIT"
echo "10. Exit"
}
read_options(){
local choice
read -p "Enter choice [ 1 - 10] " choice
case $choice in
1) ark ;;
2) persona ;;
3) ripa ;;
4) lwf ;;
5) oxy ;;
6) shifts ;;
7) lisk ;;
8) onz ;;
9) qredit ;;
10) exit 0;;
*) echo -e "${RED}Error...${STD}" && sleep 2
esac
}
# ----------------------------------------------
# Step #3: Trap CTRL+C, CTRL+Z and quit singles
# ----------------------------------------------
trap '' SIGINT SIGQUIT SIGTSTP
# -----------------------------------
# Step #4: Main logic - infinite loop
# ------------------------------------
while true
do
show_menus
read_options
done