2019-10-13 07:33:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
HOST=$1
|
|
|
|
|
|
|
|
ssh "$HOST" 'lotus wallet new bls > addr'
|
|
|
|
ssh "$HOST" 'curl http://147.75.80.29:777/sendcoll?address=$(cat addr)' &
|
|
|
|
ssh "$HOST" 'curl http://147.75.80.29:777/sendcoll?address=$(cat addr)' &
|
|
|
|
ssh "$HOST" 'curl http://147.75.80.29:777/send?address=$(cat addr)' &
|
|
|
|
wait
|
|
|
|
|
|
|
|
echo "SYNC WAIT"
|
2019-10-15 02:11:11 +00:00
|
|
|
sleep 30
|
2019-10-13 07:33:25 +00:00
|
|
|
|
|
|
|
ssh "$HOST" 'lotus sync wait'
|
|
|
|
ssh "$HOST" 'lotus-storage-miner init --owner=$(cat addr)'
|
|
|
|
ssh "$HOST" 'systemctl start lotus-storage-miner' &
|