From 0f2e27055a6a2c67da4c9c0f7634c447b32a37c7 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 8 Aug 2024 12:47:06 +0530 Subject: [PATCH] Update scripts to reuse genesis dir variable --- .../scripts/generate-stage1-genesis-using-allocations.sh | 6 +++--- .../fixturenet-laconicd/scripts/generate-stage1-genesis.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh index d0551b9..6628183 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh @@ -53,18 +53,18 @@ echo "Calculated allocations for stage 1 chain" # Run a script with cerc/laconicd:local to generate the genesis file # with onboarding module state and given allocations docker run -it \ - -v ./stage1-genesis:/root/.laconicd \ + -v ./$STAGE1_GENESIS_DIR:/root/.laconicd \ -v ./scripts:/scripts \ cerc/laconicd:local bash -c "/scripts/genesis.sh" # Copy over the genesis file to output folder OUTPUT_DIR=output mkdir -p $OUTPUT_DIR -cp ./stage1-genesis/config/genesis.json $OUTPUT_DIR/genesis.json +cp ./$STAGE1_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json echo "Genesis file for stage1 written to $OUTPUT_DIR/genesis.json" # -------- # Clean up -echo "Please remove the temporary data directory: sudo rm -rf stage1-genesis" +echo "Please remove the temporary data directory: sudo rm -rf $STAGE1_GENESIS_DIR" diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh index 53fac02..7a7722c 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh @@ -61,18 +61,18 @@ echo "Calculated allocations for stage 1 chain" # Run a script with cerc/laconicd:local to generate the genesis file # with onboarding module state and given allocations docker run -it \ - -v ./stage1-genesis:/root/.laconicd \ + -v ./$STAGE1_GENESIS_DIR:/root/.laconicd \ -v ./scripts:/scripts \ cerc/laconicd:local bash -c "/scripts/genesis.sh" # Copy over the genesis file to output folder OUTPUT_DIR=output mkdir -p $OUTPUT_DIR -cp ./stage1-genesis/config/genesis.json $OUTPUT_DIR/genesis.json +cp ./$STAGE1_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json echo "Genesis file for stage1 written to $OUTPUT_DIR/genesis.json" # -------- # Clean up -echo "Please remove the temporary data directory: sudo rm -rf stage1-genesis" +echo "Please remove the temporary data directory: sudo rm -rf $STAGE1_GENESIS_DIR"