|
@@ -13,16 +13,11 @@ cd chain33
|
|
|
[ -e bityuan.toml ] && install bityuan.toml /root/chain33/bityuan.toml
|
|
|
[ -e bityuan.lite.toml ] && install bityuan.lite.toml /root/chain33/bityuan.lite.toml
|
|
|
[ -e chain33.conf ] && install chain33.conf /etc/supervisor/conf.d/chain33.conf && supervisorctl reload
|
|
|
-supervisorctl restart chain33
|
|
|
-sleep 15
|
|
|
-cd /root/chain33
|
|
|
-./chain33-cli net info
|
|
|
|
|
|
-pass="123456"
|
|
|
-[ -e ~/myPass ] && pass=`cat ~/myPass`
|
|
|
-./chain33-cli wallet unlock -p $pass -s wallet -t 0
|
|
|
+started=`ps aux | grep bityuan -w | grep -v grep | wc -l`
|
|
|
+[ $started != 1 ] || supervisorctl restart chain33
|
|
|
|
|
|
sleep 15
|
|
|
-./chain33-cli account list | grep "airdropaddr" -B 2 | grep addr -w | cut -d '"' -f 4 > ~/myAirdropAddr
|
|
|
-cat ~/myAirdropAddr | xargs -I{} ./chain33-cli account dump_key -a {} > ~/myAirdropPriv
|
|
|
-cat ~/myAirdropPriv | grep data| cut -d '"' -f 4 | xargs -I{} echo "Run the cmd in wallet PC: account import_key -l ali00001 -k {} "
|
|
|
+started=`ps aux | grep bityuan -w | grep -v grep | wc -l`
|
|
|
+[ $started == 1 ] && echo "update bityuan success!"
|
|
|
+
|