Update scripts to reuse genesis dir variable
This commit is contained in:
parent
201aa677c7
commit
0f2e27055a
@ -53,18 +53,18 @@ echo "Calculated allocations for stage 1 chain"
|
|||||||
# Run a script with cerc/laconicd:local to generate the genesis file
|
# Run a script with cerc/laconicd:local to generate the genesis file
|
||||||
# with onboarding module state and given allocations
|
# with onboarding module state and given allocations
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ./stage1-genesis:/root/.laconicd \
|
-v ./$STAGE1_GENESIS_DIR:/root/.laconicd \
|
||||||
-v ./scripts:/scripts \
|
-v ./scripts:/scripts \
|
||||||
cerc/laconicd:local bash -c "/scripts/genesis.sh"
|
cerc/laconicd:local bash -c "/scripts/genesis.sh"
|
||||||
|
|
||||||
# Copy over the genesis file to output folder
|
# Copy over the genesis file to output folder
|
||||||
OUTPUT_DIR=output
|
OUTPUT_DIR=output
|
||||||
mkdir -p $OUTPUT_DIR
|
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"
|
echo "Genesis file for stage1 written to $OUTPUT_DIR/genesis.json"
|
||||||
|
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Clean up
|
# 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"
|
||||||
|
@ -61,18 +61,18 @@ echo "Calculated allocations for stage 1 chain"
|
|||||||
# Run a script with cerc/laconicd:local to generate the genesis file
|
# Run a script with cerc/laconicd:local to generate the genesis file
|
||||||
# with onboarding module state and given allocations
|
# with onboarding module state and given allocations
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ./stage1-genesis:/root/.laconicd \
|
-v ./$STAGE1_GENESIS_DIR:/root/.laconicd \
|
||||||
-v ./scripts:/scripts \
|
-v ./scripts:/scripts \
|
||||||
cerc/laconicd:local bash -c "/scripts/genesis.sh"
|
cerc/laconicd:local bash -c "/scripts/genesis.sh"
|
||||||
|
|
||||||
# Copy over the genesis file to output folder
|
# Copy over the genesis file to output folder
|
||||||
OUTPUT_DIR=output
|
OUTPUT_DIR=output
|
||||||
mkdir -p $OUTPUT_DIR
|
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"
|
echo "Genesis file for stage1 written to $OUTPUT_DIR/genesis.json"
|
||||||
|
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Clean up
|
# 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user