Skip to content

Commit

Permalink
Merge branch 'alpha' into rhel-9-crb-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt authored Nov 15, 2023
2 parents ecdffaf + ec89e1b commit ef66c62
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/cnode-helper-scripts/mithril-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# Do NOT modify code below #
######################################

U_ID=$(id -u)
G_ID=$(id -g)

#####################
# Functions #
#####################
Expand All @@ -34,6 +37,10 @@ usage() {


generate_environment_file() {
if [[ ! -d "${CNODE_HOME}/mithril/data-stores" ]]; then
sudo mkdir -p "${CNODE_HOME}"/mithril/data-stores
sudo chown -R "$U_ID":"$G_ID" "${CNODE_HOME}"/mithril 2>/dev/null
fi
if [[ -n "${POOL_NAME}" ]] && [[ "${POOL_NAME}" != "CHANGE_ME" ]]; then
export ERA_READER_ADDRESS=https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/${RELEASE}-${NETWORK_NAME,,}/era.addr
export ERA_READER_VKEY=https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/${RELEASE}-${NETWORK_NAME,,}/era.vkey
Expand Down Expand Up @@ -169,6 +176,10 @@ while getopts :duh opt; do
usage
exit 1
;;
*)
usage
exit 1
;;
esac
done

Expand Down
4 changes: 4 additions & 0 deletions scripts/cnode-helper-scripts/mithril-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ while getopts :dlh opt; do
usage
exit 1
;;
*)
usage
exit 1
;;
esac
done

Expand Down
7 changes: 7 additions & 0 deletions scripts/cnode-helper-scripts/mithril-signer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# Do NOT modify code below #
######################################

U_ID=$(id -u)
G_ID=$(id -g)

#####################
# Functions #
#####################
Expand Down Expand Up @@ -71,6 +74,10 @@ get_relay_endpoint() {
}

generate_environment_file() {
if [[ ! -d "${CNODE_HOME}/mithril/data-stores" ]]; then
sudo mkdir -p "${CNODE_HOME}"/mithril/data-stores
sudo chown -R "$U_ID":"$G_ID" "${CNODE_HOME}"/mithril 2>/dev/null
fi
# Inquire about the relay endpoint
read -r -p "Are you using a relay endpoint? (y/n, press Enter to use default y): " ENABLE_RELAY_ENDPOINT
ENABLE_RELAY_ENDPOINT=${ENABLE_RELAY_ENDPOINT:-y}
Expand Down

0 comments on commit ef66c62

Please sign in to comment.