Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…erators into ident
  • Loading branch information
rdlrt committed Feb 24, 2021
2 parents f8fdedd + 539c028 commit 57f27d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
3 changes: 1 addition & 2 deletions docs/Build/node-cli.md
Expand Up @@ -46,9 +46,8 @@ cardano-node version
Before you go ahead with starting your node, you may want to update values for CNODE_PORT in `$CNODE_HOME/scripts/env`. Note that it is imperative for operational relays and pools to ensure that the port mentioned is opened via firewall to the destination your node is supposed to connect from. Update your network/firewall configuration accordingly. Future executions of prereqs.sh will preserve and not overwrite these values.

```bash
POOL_NAME="GUILD"
CNODE_PORT=6000
POOL_DIR="$CNODE_HOME/priv/pool/$POOL_NAME"
POOL_NAME="GUILD"
```

> POOL_NAME is the name of folder that you will use when registering pools and starting node in core mode. This folder would typically contain your `hot.skey`,`vrf.skey` and `op.cert` files required. If the mentioned files are absent, the node will automatically start in a passive mode.
Expand Down
22 changes: 16 additions & 6 deletions scripts/cnode-helper-scripts/prereqs.sh
Expand Up @@ -234,20 +234,30 @@ if [ "$WANT_BUILD_DEPS" = 'Y' ]; then
echo "CentOS: curl pkgconfig libffi-devel gmp-devel openssl-devel ncurses-libs ncurses-compat-libs systemd-devel zlib-devel tmux"
err_exit
fi
if ! ghc --version 2>/dev/null | grep -q 8\.10\.2 || ! cabal --version 2>/dev/null | grep -q version\ 3; then
if ! command -v ghc &>/dev/null; then
echo "Install ghcup (The Haskell Toolchain installer) .."
# TMP: Dirty hack to prevent ghcup interactive setup, yet allow profile set up
unset BOOTSTRAP_HASKELL_NONINTERACTIVE
export BOOTSTRAP_HASKELL_NO_UPGRADE=1
export BOOTSTRAP_HASKELL_GHC_VERSION=8.10.2
export BOOTSTRAP_HASKELL_CABAL_VERSION=3.2.0.0
curl -s -m ${CURL_TIMEOUT} --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sed -e 's#read.*#answer=Y;next_answer=Y;hls_answer=N#' | bash
. "${HOME}"/.ghcup/env

fi
. "${HOME}"/.bashrc
if ! ghc --version 2>/dev/null | grep -q 8\.10\.2; then
echo "Installing GHC v8.10.2 .."
ghcup install ghc 8.10.2
ghcup set ghc 8.10.2
ghc --version

echo "Installing bundled Cabal .."
ghcup install cabal
fi
cabal_version=$(cabal --version 2>/dev/null | head -n 1 | cut -d' ' -f3)
if [[ -z ${cabal_version} || ! ${cabal_version} = "3.2.0.0" ]]; then
if [[ -n ${cabal_version} ]]; then
echo "Uninstalling Cabal v${cabal_version} .."
ghcup rm cabal ${cabal_version}
fi
echo "Installing Cabal v3.2.0.0 .."
ghcup install cabal 3.2.0.0
fi
fi

Expand Down

0 comments on commit 57f27d3

Please sign in to comment.