forked from P-OPSTeam/axelar-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AxelarMenu.sh
54 lines (46 loc) · 1.18 KB
/
AxelarMenu.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
#!/bin/bash
sudo apt install dialog -y -qq > /dev/null
SCRIPT=`realpath -s $0`
SCRIPTPATH=`dirname $SCRIPT`
HEIGHT=15
WIDTH=60
CHOICE_HEIGHT=15
BACKTITLE="Axelar"
TITLE="Install menu"
MENU="Choose one of the following options:"
OPTIONS=(1 "Create Axelar Node and install requirements (docker, etc ..)"
2 "Rebuild only"
3 "Rebuild with reset chain"
4 "Reboot host"
5 "Build and use your own BTCÐ endpoint"
6 "Monitor the node via cli"
7 "Exit menu")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
bash $SCRIPTPATH/testnetaxelar.sh
;;
2)
bash $SCRIPTPATH/run.sh
;;
3)
bash $SCRIPTPATH/run.sh reset
;;
4)
bash $SCRIPTPATH/rebootserver.sh
;;
5)
bash $SCRIPTPATH/newvalidator.sh
;;
6)
bash $SCRIPTPATH/nodemonitor.sh
;;
7) exit
esac