Skip to content

Commit 2b4a584

Browse files
committed
fix: remove clone repo
1 parent 168be45 commit 2b4a584

2 files changed

Lines changed: 9 additions & 14 deletions

File tree

infra/aggregation_mode/aggregation_mode.sh

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# This guide assumes you already clone the github repository
4+
# You have to cd to the repository
5+
36
# Set new server name
47
while :; do
58
echo -e "\nEnter new server name:"
@@ -85,32 +88,24 @@ source $HOME/.bashrc
8588
foundryup
8689

8790
# Create directories
88-
mkdir -p repos/proof_aggregation
8991
mkdir -p config
9092
mkdir -p .config/systemd/user
9193
mkdir -p .keystores
9294

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-
10095
# Create keystore
10196
cast wallet import proof_aggregation.keystore -k $HOME/.keystores -i
10297

10398
# 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
106102

107103
# Build the proof_aggregator
108-
cd repos/proof_aggregation/aligned_layer
109104
make install_aggregation_mode
110105

111106
# 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
114109

115110
#sudo systemctl enable aggregation_mode.service
116111
systemctl --user enable aggregation_mode.timer

infra/aggregation_mode/config_file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ prompt_and_replace "<aligned_service_manager_address>" "Aligned Service Manager
3232
prompt_and_replace "<proof_aggregation_service_address>" "Proof Aggregation Service Address"
3333
prompt_and_replace "<eth_rpc_url>" "Ethereum RPC URL"
3434
prompt_and_replace "<eth_ws_url>" "Ethereum WebSocket URL"
35-
prompt_and_replace "last_aggregated_block_filepath" "Last Aggregated Block Filepath"
35+
prompt_and_replace "<last_aggregated_block_filepath>" "Last Aggregated Block Filepath"
3636
prompt_and_replace "<private_key_store_path>" "ECDSA Private Key Store Path"
3737
prompt_and_replace "<private_key_store_password>" "ECDSA Private Key Store Password"
3838

0 commit comments

Comments
 (0)