diff --git a/scripts/ops/fix/fix-bvn-ports.sh b/scripts/ops/fix/fix-bvn-ports.sh new file mode 100755 index 000000000..9f028701b --- /dev/null +++ b/scripts/ops/fix/fix-bvn-ports.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +node="$1" +if [ -z "$node" ]; then + node=/node +fi +if ! [ -d "$node" ]; then + >&2 echo "Error: $node is not a directory" + >&2 echo "Usage: $0 [node dir]" + exit 1 +fi + +# Replace 1679x with 1669x +sed -i -re 's/1679([1-5])/1669\1/g' "$node/bvnn/config/accumulate.toml" +sed -i -re 's/1679([1-5])/1669\1/g' "$node/bvnn/config/tendermint.toml" \ No newline at end of file