Skip to content

Commit 08f74f8

Browse files
committed
play: add start/stop command by id
1 parent e57525a commit 08f74f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/play

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,12 @@ do
7474

7575
elif [[ ${!i} = start ]]; then
7676
((i++))
77-
[ -z "$var" ] && echo "playground-bitcoind not running" && echo "make run from folder" && exit
78-
docker exec -it $BITCOIND_ID sh -c "/usr/local/bin/entrypoint &"
79-
docker exec -it $BITCOIND_ID sh -c "/usr/local/bin/bitcoind -daemon -datadir=/home/root/.bitcoin -addnode=umbrel.local &"
80-
docker exec -it $BITCOIND_ID sh -c "/usr/local/bin/bitcoin-cli gettxoutsetinfo"
81-
docker exec -it $BITCOIND_ID sh -c "/usr/local/bin/bitcoin-cli getmininginfo"
77+
docker start ${!i}
8278
exit
8379

8480
elif [[ ${!i} = stop ]]; then
8581
((i++))
86-
docker stop $BITCOIND_ID
82+
docker stop ${!i}
8783
exit
8884

8985
elif [[ ${!i} = *cli ]]; then

0 commit comments

Comments
 (0)