Skip to content

Commit

Permalink
use updateWithCustomConfig to deploy mithril scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBenson committed Nov 2, 2023
1 parent 934f059 commit 377f643
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/cnode-helper-scripts/guild-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ populate_cnode() {

pushd "${CNODE_HOME}"/scripts >/dev/null || err_exit

[[ ${FORCE_OVERWRITE} = 'Y' ]] && echo -e "\nForced full upgrade! Please edit scripts/env, scripts/cnode.sh, scripts/dbsync.sh, scripts/submitapi.sh, scripts/ogmios.sh, scripts/gLiveView.sh and scripts/topologyUpdater.sh (alongwith files/topology.json, files/config.json, files/dbsync.json) as required!"
[[ ${FORCE_OVERWRITE} = 'Y' ]] && echo -e "\nForced full upgrade! Please edit scripts/env, scripts/cnode.sh, scripts/dbsync.sh, scripts/submitapi.sh, scripts/ogmios.sh, scripts/gLiveView.sh and scripts/topologyUpdater.sh scripts/mithril-client.sh scripts/mithril-relay.sh scripts/mithril-signer.sh (alongwith files/topology.json, files/config.json, files/dbsync.json) as required!"

updateWithCustomConfig "blockPerf.sh"
updateWithCustomConfig "cabal-build-all.sh"
Expand All @@ -606,6 +606,9 @@ populate_cnode() {
updateWithCustomConfig "setup_mon.sh"
updateWithCustomConfig "setup-grest.sh" "grest-helper-scripts"
updateWithCustomConfig "topologyUpdater.sh"
updateWithCustomConfig "mithril-client.sh"
updateWithCustomConfig "mithril-relay.sh"
updateWithCustomConfig "mithril-signer.sh"

find "${CNODE_HOME}/scripts" -name '*.sh' -exec chmod 755 {} \; 2>/dev/null
chmod -R 700 "${CNODE_HOME}"/priv 2>/dev/null
Expand All @@ -618,7 +621,7 @@ parse_args() {
[[ "${S_ARGS}" =~ "p" ]] && INSTALL_OS_DEPS="Y"
[[ "${S_ARGS}" =~ "b" ]] && INSTALL_OS_DEPS="Y" && WANT_BUILD_DEPS="Y"
[[ "${S_ARGS}" =~ "l" ]] && INSTALL_OS_DEPS="Y" && WANT_BUILD_DEPS="Y" && INSTALL_LIBSODIUM_FORK="Y"
[[ "${S_ARGS}" =~ "m" ]] && INSTALL_MITHRIL="Y" && WANT_BUILD_DEPS="Y"
[[ "${S_ARGS}" =~ "m" ]] && INSTALL_MITHRIL="Y"
[[ "${S_ARGS}" =~ "f" ]] && FORCE_OVERWRITE="Y" && POPULATE_CNODE="F"
[[ "${S_ARGS}" =~ "d" ]] && INSTALL_CNODEBINS="Y"
[[ "${S_ARGS}" =~ "c" ]] && INSTALL_CNCLI="Y"
Expand Down
Empty file modified scripts/cnode-helper-scripts/mithril-client.sh
100644 → 100755
Empty file.
Empty file modified scripts/cnode-helper-scripts/mithril-relay.sh
100644 → 100755
Empty file.

0 comments on commit 377f643

Please sign in to comment.