-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·60 lines (36 loc) · 1.19 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
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DEBUG=${DEBUG:-""}
if [[ -n $DEBUG ]]; then
set -x
fi
SCRIPT_DIR=$(dirname "$0")
DATA_DIR=$(readlink -f "./out")
source "$SCRIPT_DIR"/utils/utils.sh
source "$SCRIPT_DIR"/utils/step_utils.sh
source "$SCRIPT_DIR"/utils/download_tezos.sh
source "$SCRIPT_DIR"/steps/1-update-machine.sh
source "$SCRIPT_DIR"/steps/2-check-deps.sh
source "$SCRIPT_DIR"/steps/3-install-tezos.sh
source "$SCRIPT_DIR"/steps/4-setup-services.sh
source "$SCRIPT_DIR"/steps/5-import-snapshot.sh
source "$SCRIPT_DIR"/steps/6-start-node.sh
source "$SCRIPT_DIR"/steps/register-baker.sh
source "$SCRIPT_DIR"/steps/7-start_baker_binaries.sh
mkdir -p "$DATA_DIR"
source "$SCRIPT_DIR"/utils/baker_details.sh
step=0
num_step update_machine restart_machine
num_step check_deps
num_step install_tezos
num_step create_tezos_services
num_step import_snapshot
num_step start_node
echo "Please import your baker"
echo "To import a ledger baker, run ./baker-account/import_ledger_baker.sh"
echo "To import a tesnet baker, run ./baker-account/create_test_baker.sh ADDRESS"
echo "once baker is imported, press [Enter] to continue..."
read -r
num_step register_baker
num_step start_baker_binaries