From 9cb2bc60ac5ebab1b3ac7e6ac145a20d7110ddea Mon Sep 17 00:00:00 2001 From: Sebastian Johnsson Date: Fri, 28 Feb 2020 14:47:49 +0700 Subject: [PATCH] Add support for static binaries in node.sh --- scripts/node.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/node.sh b/scripts/node.sh index 29cc5dbf6..0a9403f2a 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -125,6 +125,7 @@ options: -M support multi-key mode (default: off) -A enable archival node mode (default: off) -B blacklist specify file containing blacklisted accounts as a newline delimited file (default: ./.hmy/blacklist.txt) + -I use statically linked Harmony binary examples: @@ -177,12 +178,13 @@ staking_mode=false multi_key=false archival=false blacklist=./.hmy/blacklist.txt +static=false verify=false ${BLSKEYFILE=} unset OPTIND OPTARG opt OPTIND=1 -while getopts :1chk:sSp:dDmN:tT:i:ba:U:PvVyzn:MAB:Y opt +while getopts :1chk:sSp:dDmN:tT:i:ba:U:PvVyzn:MAIB:Y opt do case "${opt}" in '?') usage "unrecognized option -${OPTARG}";; @@ -204,6 +206,7 @@ do t) network=devnet;; T) node_type="${OPTARG}";; i) shard_id="${OPTARG}";; + I) static=true;; a) db_file_to_dl="${OPTARG}";; U) upgrade_rel="${OPTARG}";; P) public_rpc=true;; @@ -289,6 +292,9 @@ if [ "$OS" == "Darwin" ]; then fi if [ "$OS" == "Linux" ]; then FOLDER=release/linux-x86_64/$REL/ + if [ "$static" == "true" ]; then + FOLDER=release/linux-x86_64/$REL/static/ + fi fi extract_checksum() {