Skip to content

Commit

Permalink
infra-net-setup: adjust write permissions for nix compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Jun 10, 2024
1 parent ec014c1 commit 947c34b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cmds/infra/net/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,8 @@ function _setup_genesis_chainspec()
local PROTOCOL_VERSION=1.0.0
local SCRIPT

if [ "$(get_os)" = "macosx" ]; then
cp "$PATH_TO_CHAINSPEC_TEMPLATE" "$PATH_TO_CHAINSPEC"
else
cp --no-preserve=mode "$PATH_TO_CHAINSPEC_TEMPLATE" "$PATH_TO_CHAINSPEC"
fi
cp "$PATH_TO_CHAINSPEC_TEMPLATE" "$PATH_TO_CHAINSPEC"
chmod 644 "$PATH_TO_CHAINSPEC"

SCRIPT=(
"import toml;"
Expand Down Expand Up @@ -339,11 +336,8 @@ function _setup_node_config()
cp "$PATH_TO_ASSETS/genesis/accounts.toml" "$PATH_TO_NODE_CONFIG_DIR"
cp "$PATH_TO_ASSETS/genesis/chainspec.toml" "$PATH_TO_NODE_CONFIG_DIR"

if [ "$(get_os)" = "macosx" ]; then
cp "$PATH_TO_NODE_CONFIG_TEMPLATE" "$PATH_TO_NODE_CONFIG"
else
cp --no-preserve=mode "$PATH_TO_NODE_CONFIG_TEMPLATE" "$PATH_TO_NODE_CONFIG"
fi
cp "$PATH_TO_NODE_CONFIG_TEMPLATE" "$PATH_TO_NODE_CONFIG"
chmod 644 "$PATH_TO_NODE_CONFIG"

SCRIPT=(
"import toml;"
Expand Down

0 comments on commit 947c34b

Please sign in to comment.