From 947c34b991e37476db82ccfa2bd7c0312c1a91d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Mon, 10 Jun 2024 07:54:47 +0200 Subject: [PATCH] infra-net-setup: adjust write permissions for nix compatibility --- cmds/infra/net/setup.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/cmds/infra/net/setup.sh b/cmds/infra/net/setup.sh index 513356a..5d4786f 100644 --- a/cmds/infra/net/setup.sh +++ b/cmds/infra/net/setup.sh @@ -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;" @@ -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;"