Update permissions for generated files
This commit is contained in:
parent
ab333da5be
commit
a8f6a8f73f
@ -25,7 +25,6 @@
|
|||||||
cmd: "CHAIN_ID={{ cerc_chain_id }} EARLY_SUPPORTS_ACC_ADDRESS={{ early_supports_acc_address }} ~/cerc/laconicd-stack/scripts/generate-mainnet-genesis.sh ~/cerc/laconicd-stack/testnet-state.json"
|
cmd: "CHAIN_ID={{ cerc_chain_id }} EARLY_SUPPORTS_ACC_ADDRESS={{ early_supports_acc_address }} ~/cerc/laconicd-stack/scripts/generate-mainnet-genesis.sh ~/cerc/laconicd-stack/testnet-state.json"
|
||||||
always:
|
always:
|
||||||
- name: Clean up temporary genesis directory
|
- name: Clean up temporary genesis directory
|
||||||
become: true
|
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_env.HOME }}/cerc/laconicd-stack/playbooks/first-validator/mainnet-genesis"
|
path: "{{ ansible_env.HOME }}/cerc/laconicd-stack/playbooks/first-validator/mainnet-genesis"
|
||||||
state: absent
|
state: absent
|
||||||
@ -38,3 +37,7 @@
|
|||||||
- name: Display genesis file location
|
- name: Display genesis file location
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Mainnet genesis file generated at output/genesis.json"
|
msg: "Mainnet genesis file generated at output/genesis.json"
|
||||||
|
|
||||||
|
- name: Display staking-amount file location
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "Staking amount written to output/staking-amount.json"
|
||||||
|
@ -57,8 +57,6 @@ docker run \
|
|||||||
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
|
|
||||||
mkdir -p $OUTPUT_DIR
|
|
||||||
cp ./$MAINNET_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json
|
cp ./$MAINNET_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json
|
||||||
|
|
||||||
# TODO: chown the output dir to user
|
# TODO: chown the output dir to user
|
||||||
@ -67,4 +65,4 @@ echo "Genesis file for mainnet written to $OUTPUT_DIR/genesis.json"
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
echo "Please remove the temporary data directory: sudo rm -rf $MAINNET_GENESIS_DIR"
|
rm -rf $MAINNET_GENESIS_DIR
|
||||||
|
@ -8,6 +8,10 @@ set -u
|
|||||||
|
|
||||||
CHAIN_ID=${CHAIN_ID:-"laconic-mainnet"}
|
CHAIN_ID=${CHAIN_ID:-"laconic-mainnet"}
|
||||||
MONIKER=${MONIKER:-"mainnet-node"}
|
MONIKER=${MONIKER:-"mainnet-node"}
|
||||||
|
NODE_HOME="/root/.laconicd"
|
||||||
|
|
||||||
laconicd config set client chain-id $CHAIN_ID
|
laconicd config set client chain-id $CHAIN_ID
|
||||||
laconicd init $MONIKER --chain-id $CHAIN_ID --default-denom alnt
|
laconicd init $MONIKER --chain-id $CHAIN_ID --default-denom alnt
|
||||||
|
|
||||||
|
# Allow all permissions to process further
|
||||||
|
chmod -R 777 $NODE_HOME/data $NODE_HOME/config
|
||||||
|
Loading…
Reference in New Issue
Block a user