diff --git a/endpoint-options.sh b/endpoint-options.sh new file mode 100755 index 00000000..cdb73feb --- /dev/null +++ b/endpoint-options.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +BASEPATH="$(dirname "$0")" +source $BASEPATH/.env + +IFS=':' read -ra parts <<< $COMPOSE_FILE + +json=$(cat "$BASEPATH/reference-rpc-endpoint.json") + +default_array=() +for key in $(jq -r 'keys[]' <<< "$json"); do + default_values=$(jq -r ".[\"$key\"].default[]" <<< "$json") + default_array+=($default_values) +done + +for node in $default_array; do + size_in_gb=$($BASEPATH/restore-volumes.sh --print-size-only) + + if [ $? -eq 0 ]; then + echo "$node: $sizeG" + fi +done + +# Print the combined array +#printf "%s\n" "${default_array[@]}"