try
This commit is contained in:
10
op-lisk-sepolia.before-stop
Executable file
10
op-lisk-sepolia.before-stop
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEPATH="$(dirname "$0")"
|
||||
source $BASEPATH/.env
|
||||
|
||||
echo "running in $BASEPATH"
|
||||
|
||||
target_file="op-lisk-sepolia-node-$(date +'%Y-%m-%d-%H-%M-%S').peers"
|
||||
|
||||
docker exec rpc-op-lisk-sepolia-1 curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"opp2p_peers","params":[true],"id":1}' http://localhost:8545 | jq '.result.peers[].addresses[]' > "/backup/$target_file"
|
||||
Reference in New Issue
Block a user