|
1 | 1 | #!/bin/bash |
2 | 2 |
|
| 3 | +# This guide assumes you already clone the github repository |
| 4 | +# You have to cd to the repository |
| 5 | + |
3 | 6 | # Set new server name |
4 | 7 | while :; do |
5 | 8 | echo -e "\nEnter new server name:" |
@@ -85,32 +88,24 @@ source $HOME/.bashrc |
85 | 88 | foundryup |
86 | 89 |
|
87 | 90 | # Create directories |
88 | | -mkdir -p repos/proof_aggregation |
89 | 91 | mkdir -p config |
90 | 92 | mkdir -p .config/systemd/user |
91 | 93 | mkdir -p .keystores |
92 | 94 |
|
93 | | -# Clone Repo |
94 | | -cd repos/proof_aggregation |
95 | | -git clone https://github.com/yetanotherco/aligned_layer.git |
96 | | -cd aligned_layer |
97 | | -git checkout staging |
98 | | -cd |
99 | | - |
100 | 95 | # Create keystore |
101 | 96 | cast wallet import proof_aggregation.keystore -k $HOME/.keystores -i |
102 | 97 |
|
103 | 98 | # Create config file interactively |
104 | | -$HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/config_file.sh $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/config-proof-aggregator.template.yaml |
105 | | -read -p "Enter a number (last_aggregated_block): " num && echo "{\"last_aggregated_block\":$num}" > $HOME/config/proof-aggregator.last_aggregated_block.json.test |
| 99 | +./infra/aggregation_mode/config_file.sh ./infra/aggregation_mode/config-proof-aggregator.template.yaml |
| 100 | +touch $HOME/config/proof-aggregator.last_aggregated_block.json |
| 101 | +read -p "Enter a number (last_aggregated_block): " num && echo "{\"last_aggregated_block\":$num}" > $HOME/config/proof-aggregator.last_aggregated_block.json |
106 | 102 |
|
107 | 103 | # Build the proof_aggregator |
108 | | -cd repos/proof_aggregation/aligned_layer |
109 | 104 | make install_aggregation_mode |
110 | 105 |
|
111 | 106 | # Setup systemd service |
112 | | -cp $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/aggregation_mode.service $HOME/.config/systemd/user/aggregation_mode.service |
113 | | -cp $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/aggregation_mode.timer $HOME/.config/systemd/user/aggregation_mode.timer |
| 107 | +cp ./infra/aggregation_mode/aggregation_mode.service $HOME/.config/systemd/user/aggregation_mode.service |
| 108 | +cp ./infra/aggregation_mode/aggregation_mode.timer $HOME/.config/systemd/user/aggregation_mode.timer |
114 | 109 |
|
115 | 110 | #sudo systemctl enable aggregation_mode.service |
116 | 111 | systemctl --user enable aggregation_mode.timer |
|
0 commit comments