infra-role-geth/templates/geth-attach-wrapper.sh
Jakub Sokołowski f94a05fcd1
add ageth - a wrapper script for accessing geth console
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-26 14:13:20 +02:00

7 lines
239 B
Bash

#!/usr/bin/env bash
if [[ -z "$@" ]]; then
docker exec -it {{ geth_cont_name }} geth attach http://localhost:{{ geth_rpc_port }}
else
docker exec {{ geth_cont_name }} geth attach http://localhost:{{ geth_rpc_port }} --exec "$@"
fi