-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunityapp.sh
More file actions
94 lines (83 loc) · 3.02 KB
/
unityapp.sh
File metadata and controls
94 lines (83 loc) · 3.02 KB
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
#!/bin/bash
source <(curl -s https://raw.githubusercontent.com/UnityNodes/scripts/main/utils.sh)
function server {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/server.sh)
}
function testnet_menu {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/testnet_menu.sh)
}
function mainet_menu {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/mainet_menu.sh)
}
function other_menu {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/other_menu.sh)
}
function monitor {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/monitoring/monitoring.sh)
}
function backup {
bash <(curl -s https://raw.githubusercontent.com/UnityNodes/unityapp/main/backup.sh)
}
function main_menu {
while true; do
clear
anima
clear
logo
printBlue "● Unity Nodes App
│
│
│ ┌───┬──────────────────────────────────────┐
├─┤ 1 │ Commands for the server (terminal) │
│ ├───┼──────────────────────────────────────┤
├─┤ 2 │ Testnet Cosmos Network │
│ ├───┼──────────────────────────────────────┤
├─┤ 3 │ Mainet Cosmos Network │
│ ├───┼──────────────────────────────────────┤
├─┤ 4 │ Other Node (automatic installation) │
│ ├───┼──────────────────────────────────────┤
├─┤ 5 │ Monitoring │
│ ├───┼──────────────────────────────────────┤
├─┤ 6 │ Validator Backup │
│ ├───┼──────────────────────────────────────┤
└─┤ 0 │ Exit │
└───┴──────────────────────────────────────┘"
read -p "Make your choice, and enter the item number ► " choice
case "$choice" in
1)
clear
server
;;
2)
clear
testnet_menu
;;
3)
clear
mainet_menu
;;
4)
clear
other_menu
;;
5)
clear
monitor
;;
6)
clear
backup
;;
0)
echo "You have exited the menu."
break
;;
*)
echo
printRed "The specified item is incorrect, please try again:"
;;
esac
read -p "Press Enter to return to the main menu..."
done
}
main_menu